I have a button in my application :
<button name="download" id="download" type="submit" class="btn primary" style="margin:0;">Next</button>
How can I disable this button and re-enable it using JQuery ?
I tried below code but it doesn't works.
$('#download').attr('disabled', 'disabled');
$('#download').removeAttr('disabled');
TIA :)
download