if I type the code as
[HTML]<input type="text" name="txtbox" >[/HTML]
and make the script language as
[CODE=javascript]function empty()
{
if(document.For m1.txtbox.value =="")
{
alert("should not be blank");
return false;
}
}[/CODE]
it works well , but If i give the same coding for a runat = "server" it does not work How should I do this ? Is there a possibility for getting the control by getElementById for TextBox as there is no "name" attribute present in ...
[HTML]<input type="text" name="txtbox" >[/HTML]
and make the script language as
[CODE=javascript]function empty()
{
if(document.For m1.txtbox.value =="")
{
alert("should not be blank");
return false;
}
}[/CODE]
it works well , but If i give the same coding for a runat = "server" it does not work How should I do this ? Is there a possibility for getting the control by getElementById for TextBox as there is no "name" attribute present in ...
Comment