phani
09-04-2002, 06:43 AM
can u guide in solving my problem. i have to raise an alert on clicking a button if the text field is empty.can u tell what's wrong in the code here:
if(isEmpty(doucment.forms[0].txt_topicname.value))
{
alert("FIELD CAN'T BE EMPTY");
document.forms[0].txt_topicname.focus();
}
if(isEmpty(doucment.forms[0].txt_topicname.value))
{
alert("FIELD CAN'T BE EMPTY");
document.forms[0].txt_topicname.focus();
}