faqts

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

6 of 8 people (75%) answered Yes
Recently 6 of 8 people (75%) answered Yes

Entry

How do i validate whether there is a data entered in text field or not after i tab out from it....?

May 12th, 2008 20:48
i can do it, Suffolk Computer Services, Lakshmi Alluri,


This is one way using JavaScript
<form name="form" method="post" action="test.htm">
Your Name*:<br><input type="text" name="name">
<br><br>
Your Email*:<br><input type="text" name="email" onFocus="if(!
form.name.value){alert('Please enter your Name!');form.name.focus();}">
<br><br>
Your Address:<br><input type="text" name="address" onFocus="if(!
form.email.value){alert('Please enter your Email!');form.email.focus
();}">
<br><br>
<input type="submit">
</form>
http://www.stupidarticles.com
http://www.halazona.com
http://www.shikapika.com
http://www.stakoza.com
http://www.uploadarticles.com
http://www.ganazat.com
http://www.damima.com
http://www.tarabiza.com
http://www.articlesxarticles.com
http://www.articlesfreedirectory.com