Can any one tell me how can we validate email in the javascipt.?please tell me, I need it.
Can any one tell me how can we validate email in the javascipt.?please tell me, I need it.
Firstly, No. If you can't find something that common on google then you honestly don't need to know. (try typing it in on google... "validate email with javascript")
2nd, Don't. Javascript runs in the web browser of the person visiting the website meaning it's running on the client side. The javascript is also visible to the user and can be modified by the user. Any validation you do in javascript can be overridden by a talented user.
Do your validation in a server side script such as php, ruby, python, asp, perl, etc..
You can still do validation in javascript so that you can inform the user before he submits the form that his email address isn't up to spec, but you cannot trust this as validation. It's a nice courtesy to the user though.
Here are your two lessons for the day..
Don't trust client side data!
Try google before you ask questions in the forums.
Please also refrain from phrases like "I need it" - it makes it sound like you're demanding we give you the solution (that is all over google should you choose to query for it there)
Peace.
No,you won't be able to validate your e-mail using javascript.
There is no technique to do so.
I've searched a lot,but haven't found anything.
What were you searching for and how?No,you won't be able to validate your e-mail using javascript.
There is no technique to do so.
I've searched a lot,but haven't found anything.
If you follow my previous suggestionyou'll find dozens of examples. I'd post the link here for you but I require more posts before I can provide a link in my post.(try typing it in on google... "validate email with javascript")
ok i'll be waiting for that.
I'll check back soon.
There's lots of useful scripts available. I assume your checking the email entered on a form. Try this The JavaScript Source: Forms: Email Validation - Basic.
Seen a good post - give some reputationKeeping the forum clean - SPAMMERS BEWARE!!
Bookmarks