Join Date: November 2008
Location: India ( chennai )
Posts: 14
input box count
Hi,
I have about 10 input box in html,which is loaded dynamically from javascript. Now i need the count of all the input boxes which should be done in javascript. Can anyone help me in this?
Regards, Thiyaghu CK.
benaya
Posted on Apr 27, 2009
Join Date: June 2007
Location: India ( Chennai )
Posts: 90
RE : input box count
Hi, Try with this script.
<script language="javascript"> function txtvalid(intCnt) { for(intI=1;intI<=intCnt;intI++) { if(document.getElementById("txt"+intI).value=="") { alert("Please enter text"+intI); document.getElementById("txt"+intI).focus(); return false; } } }