javascript - How do I hide a button with data-status = 'Processing' using JQuery -
here code after processed:
<button class="btn btn-icon btn-danger command-delete" id="delbutton" aria-describedby="tooltip779899" type="button" data-original-title="delete sales order" data-toggle="tooltip" data-target="#modaldelete" data-placement="top" data-row-id="34" data-status="processed"><span class="zmdi zmdi-delete"></span></button>
i need hide button when data-status = "processed"
any appreciated!
$("button[data-status='processed']").hide();
you can select element(s) based on 1 of it's attribute.
Comments
Post a Comment