I need some javascript code to validate a select option. Means something like this.
Select Country : --select--
If the user submits the form without selecting country. we have to make a alert him saying
"please select the country".
Let me know how to do this and any sample code appreciatable
Thanks in Advance,
Laxman Chowdary
-
Please check this URL--> ozzu.com/programming-forum/validate-form-onchange-t18556.htmlrt2800– rt28002012-05-07 06:58:05 +00:00Commented May 7, 2012 at 6:58
-
That url info is not related to my requirement. Once the user doesn't select the select option and form submitting only we have to alert him..Mr.Chowdary– Mr.Chowdary2012-05-07 07:17:42 +00:00Commented May 7, 2012 at 7:17
-
sorry for the inconvenience. I actually sent the same code to my friend and asked here. But not edited.That is the problem. Once again sorry for that..Mr.Chowdary– Mr.Chowdary2012-05-07 07:22:29 +00:00Commented May 7, 2012 at 7:22
Add a comment
|