thank you :)
I don't suppose you can reply to:
http://www.experts-exch
Hello Experts
For text fields, this works well:
if(frm.txtCompany.value == '')
{
alert('The Company field is mandatory');
return false;
}
However,. I tried the following for a dropdown, where *** Please Select *** is not a valid selection, but nothing happens:
if(frm.cboModule.value == '*** Please Select ***')
{
alert('The Module field is mandatory');
return false;
}
As well, I also need to validate if a radio button is selected within a group, I can't imagine the code for tha.
Please help
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
thank you :)
I don't suppose you can reply to:
http://www.experts-exch
Please NEVER use the onClick to validate also NEVER call anything name="submit"
the correct method is
<form name="frm" method="POST" action="thank-you.asp" onSubmit="return validate(this)">
Company: <input type="text" name="txtCompany">
<input type="submit" name="submitButton" value="submit">
Make sure to not have only one radio or the test has to be expanded to include test for a single radio
mplungjan
I agree to this...
<form name="frm" method="POST" action="thank-you.asp" onSubmit="return validate(this)">
but in asp i am not sure if the onSubmit would work (if form has a server side execution
so interpreting in terms of asp
<input type="submit" name="submitButton" value="submit" onclick="some function">
would be
<asp:.. code... onclientClick="some function">
asp not my strong side though, but I think this is how it would behave....
Business Accounts
Answer for Membership
by: kadabaPosted on 2009-11-04 at 14:16:02ID: 25744613
I have replied in the previous post , I will post the same piece of information here also
Select allOpen in new window