php select disable submit no value

Solutions on MaxInterview for php select disable submit no value by the best coders in the world

showing results for - "php select disable submit no value"
Brentley
14 Jul 2017
1$(document).ready(function() {
2     $("#names").change(function () {
3          var str = "";
4          if ($("#names option:selected").val()=='')
5            {
6
7                $('#jsbutton').attr('disabled', 'disabled');  
8            }
9            else
10            {
11
12                $('#jsbutton').removeAttr('disabled');
13            }
14        });
15});