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

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -