I make some assumptions for the required fields and then I want to focus on the first scene texterea or text box or select .
The following code is okay for Textera and Text Box, but not for selection. How can I make a check for blank selection in the following forged statements? Any help would be appreciated.
$ ("textarea: empty: visible, input [value = ']]: visible, select the option [value =' ']: visible"). ) .focus (); here
you .filter () < / Code> $ ("textarea: empty: visible, input [value ="]: visible, "). Filter (function () {if ($ (this) .is ('select')) (If (this.value === "") {Back true;} and {return false;}} else {return true;} }).); Demo ----->
No comments:
Post a Comment