javascript - Disable send button -


I am using this code to check if the value is selected in the Open drop down.

  $ (document) .ready (function () {$ ("send") Click (function () {if (document.getElementById ('dropdown1'). SelectedIndex == 0) $ ("# Msg_dropdown1") HTML ("required");}); $ ('# dropdown1') .changes (function () {$ ('# msg_dropdown1'). Hide ()})});   

Is there a way to disable the SUBMIT button until a value is selected?

  & lt; Input type = "submit" id = "send" value = "send" class = "gb btn" />    

change $ (click "send") (function () { Click $ (# "send") from (function () {

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -