faqts

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

5 of 6 people (83%) answered Yes
Recently 5 of 6 people (83%) answered Yes

Entry

How do i validate whether there is a data entered in text field or not....?

May 12th, 2008 20:47
i can do it, Saravpreet Minhas, Lakshmi Alluri,


write the following code in head tag
<script>
function check()
{
if (document.frm1.text1.value=="")
{
alert("text field is empty")
return false;
}
}
</script>
write the following code in body tag
<body>
<form name="frm1" onsubmit="return check()">
<input type=text name="text1">
<input type=submit>
</body>
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