Jump to content

js doubt cannot able to solve HELP MEEE


rajmohan

Recommended Posts

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 back

who to write it

function validate( // here the names)
{

if(document.form1.?.value="")
{
alert("Enter thefield"+?);
return false;
}

return true;
}
Link to comment
https://forums.phpfreaks.com/topic/19454-js-doubt-cannot-able-to-solve-help-meee/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.