To set the button to be disabled in the html tag, you can use the following code
In jquery you can use the attr() function to modify the button The disable attribute
$("#test").attr('disabled',false);
jquery controls the disabled attribute of the button