Disable button dynamically

Disable button dynamically

Hi,I am using JqueryMobile-1.3.0 and cordova-2.1.0 for iOS app.I want to disable the button on pageshow event.I am doing like this  $( '#clearButton' ).attr( 'disabled' , "" ) and button is
  <input type =' button'   data-role = "button" data-inline = "true" id = "clearButton" value = "Clear" onclick =' resetLogin();' />

Its disabling the buttons onclick event but the style of button remains as it is.
    • Topic Participants

    • sneha