JavaScript beginner needs help!!!

wxdqz

New Member
I'm fairly new at programming so this might sound like a dumb question. Basically I have only one submit button on a form. I need that button to call out a function that does a few things. First it checks to see if a state abbreviation has been chosen from a drop down list. If not, it displays
an error. Second, it checks to see if a zipcode has been entered in a field. If not it displays a message.Last it makes sure a few checkboxes and radio buttons have been chosen and, if not , displays the appropriate message.So heres my question(s).Can a function do more than one task?If so, how is it done? If not, what other options do I have?If this is to difficult to explain
do you know of a webpage I could view the source code for to get a good example. Any help would be greatly appreciated. email: <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
Thanks, brider1977
 
Top