Please disregard last post (too much junk). I validate a form using Javascript. OnLoad, the form puts the focus in the 1st field. When the field loses focus (onblur) it validates the date using a script I got from SmartWebby.com. Everything works OK until I try to validate the next field which is a dropdown box. Once I put the validation code for the dropdown box in, the original coding stops working. The javascript & html code is below. Has anyone seen this or can anyone help?
Code:function ValidateTime() { if document.frmSample.ObsTime.value=="Select Time" alert ("Please select observation time.") { return false } return true }


Reply With Quote
Bookmarks