Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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');
            }
        });
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #select #disable #submit
ADD COMMENT
Topic
Name
6+1 =