1
0
-1

I have used the following code. But not working.


  if (($("input[name='required_air_ticket']").is(":checked")) == true) {
                $("select[name='travel_class']").removeAttr("disabled");
            } else {
                $("select[name='travel_class']").attr("disabled", "disbled");
            }

  1. Ansari Arshad

    The above code is in jQuery

CommentAdd your comment...

2 answers

  1.  
    2
    1
    0

    Personally, I just use the section visibility to control it.

      CommentAdd your comment...
    1.  
      1
      0
      -1

      Thanks Ian

        CommentAdd your comment...