Hi Guys,
My array textbox validation is not working fine,my code is given below please help me immediately.
[code=js]
function validation()
{
var chks = document.getEle mentsByName('rr[]');//here rr[] is the name of the textbox
for (var i = 0; i < chks.length; i++)
{
if (chks[i].value=="")
{
alert("Please fillup atleast one textbox");
chks[i].focus();
return false;
}
}
}[/code]
My array textbox validation is not working fine,my code is given below please help me immediately.
[code=js]
function validation()
{
var chks = document.getEle mentsByName('rr[]');//here rr[] is the name of the textbox
for (var i = 0; i < chks.length; i++)
{
if (chks[i].value=="")
{
alert("Please fillup atleast one textbox");
chks[i].focus();
return false;
}
}
}[/code]
Comment