Using Jquery, how to disable a submit button via its ID? I have tried many codes, but failed.
$("#sign_up").attr('disabled', 'disabled');
here is another one i tried:-
$("#sign_up").attr('disabled', true);
Note: I have included jquery library: //ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js
It will be very nice of you if you provided a fiddle :)
#sign_upelement appears in DOM. Is this line called in$(function(){ ... })block?