rajmohan Posted September 2, 2006 Share Posted September 2, 2006 i am using java script function in php i.e i am having more text fields and i want to validate in single function whether the user entered or not . if the user dosent fill it alert message should display other return true.fields are username,password,confirmpassword,age,date,etc....i want to pass this name to a function that should check it and return backwho to write it function validate( // here the names){if(document.form1.?.value=""){ alert("Enter thefield"+?); return false;}return true;} Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.