how to enable and disable submit button in php code example
Example: php select disable submit no value
$(document).ready(function() {
$("#names").change(function () {
var str = "";
if ($("#names option:selected").val()=='')
{
$('#jsbutton').attr('disabled', 'disabled');
}
else
{
$('#jsbutton').removeAttr('disabled');
}
});
});