Welcome visitor
* Login
* Register
It is currently July 22nd, 2019, 10:33 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » JavaScript



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  validate a form before submitting it
PostPosted: February 17th, 2009, 8:03 pm 
User avatar

Posts: 56
Hi there,

What I want to do is to validate that the user has completely filled a form before submitting it, is there a way to do it on the client side?

Thanks for your help guys.


Last edited by Ybox on February 17th, 2009, 8:18 pm, edited 1 time in total.

Top
 Profile  
 
  Re: validate a form before submitting it
PostPosted: February 17th, 2009, 8:12 pm 
User avatar

Posts: 136
check this:
<form action="" method="" name="thename" onsubmit="javascript:return validateThis(this)"> //this is on the html form


this is for the function:
function validateThis(thename){
/*...all the validation process goes here...*/
return true;
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » JavaScript


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron