jQuery check button disabled

jQuery check button disabled

You could use below to check if button is disabled:

Option 1:

$(“#idOfButton”).attr(‘disabled’)==”disabled”

Option 2:

$(“# idOfButton “).is(“:disabled”)

Option 3:

$(‘# idOfButton’).prop(‘disabled’)

Leave a Reply

Your email address will not be published. Required fields are marked *