|
-
Oct 3rd, 2005, 07:20 AM
#1
Thread Starter
Fanatic Member
Form clears after alert
I have three buttons included in my form. I have a javascript onclick event for one of the submit buttons. Here is the javascript associated with the onclick event:
function chkSave(){
if(document.form1.txtjobnum.value == "")
{
window.alert("please enter a job number");
document.form1.txtjobnum.focus();
return false;
}
}
The alert box works correctly but whenever I click on OK in the alert box my all the data in my form is cleared. Can anybody explain why this is happening?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|