|
Hi I have a simple javascript code.. I dont have an idea why come out wif error!!
Can You help me for this?
Thanks a lot for the advise.... =)
My code:
<script language="JavaScript" >
var checkbox_choices=0;
function verifyForm () {
if (document.request.mpnArea.value=="")
{
alert("Please enter the mpnIDs.");
document.request.mpnArea.focus();
return false;
}
for (i = 0; i < request.checkbox.length; i++)
{
if (request.checkbox[counter].checked)
{ checkbox_choices = checkbox_choices + 1; }
}
if (checkbox_choices==0)
{
alert("Please 'tick' if you would like to search by 'exact match' or 'matching starting with'");
return false;
}
if (checkbox_choices==2)
{
alert("Please choose one type of matching only");
return false;
}
else return true;
}
</script>
|
|
|
hi lince_tang,
maybe your error at
alert("Please 'tick' if you would like to search by 'exact match' or 'matching starting with'");
please let us know what is your error.
|
|
|
|
|
|
|
|
|
|