How to disable a series of buttons using jQuery -
how disable prev button when previous month less current month? instance, if current month june, want disable prev month button cant edit month of may , rest of it
for(x=1;x<=12;x++){ contents += '<td> <input type="button" name="x" id="'+x+'" class="reupload btn btn-primary '+ disabled_class + '" value="add" ></td>'; }
you utilize .attr() function add together "disabled" attribute. http://api.jquery.com/attr/
jquery
No comments:
Post a Comment