Hey all I have two text boxes. I want to show message if text box1 value is not equal to textbox2
I have written this but it does not work
[code=java]function ValidatePost()
{
if(document.get ElementById("<% =txtsign.Client ID%>").value != document.getEle mentById("<%=tx tId.ClientID%>" ).value)
{
alert("-------------------------");
document.getEle mentById("<%=tx tsign.ClientID% >").focus();
return false;
}
}[/code]
thanks
I have written this but it does not work
[code=java]function ValidatePost()
{
if(document.get ElementById("<% =txtsign.Client ID%>").value != document.getEle mentById("<%=tx tId.ClientID%>" ).value)
{
alert("-------------------------");
document.getEle mentById("<%=tx tsign.ClientID% >").focus();
return false;
}
}[/code]
thanks
Comment