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
Post a Comment