I have a form that acts both as a search form and an inserting form. It has two submit buttons on it, one for searching and one for inserting new records. I need to validate the form before it is sent to the server. I'm using Javascript but can't find a way to determine which button has been selected so I can run the correct validation for it. Searching requires one type of validation and inserting requires another.
Thanks.
Thanks.