OnTextChanged

kunal.kb

Member
Joined
Sep 8, 2005
Messages
21
Programming Experience
Beginner
i want to call OnTextChanged event (textbox autopostback event)
by using javascript function
any one knows how to do it?
 
Hi,
see this example


</asp:textbox><asp:textbox id="txtClaimBonusVal" style="Z-INDEX: 168; LEFT: 376px; POSITION: absolute; TOP: 120px"
tabIndex="20" runat="server" Width="48px" CssClass="inputControl" onchange="javascript:fnValClaims();">



<script>
function fnValClaims()
{
if (document.frmRI.txtClaimBonusPC.value != '')
{
alert('Please Enter Either Claims % or Lumpsum Amount');
return;
}

var fpcClaims = document.frmRI.txtClaimBonusVal.value;
if (!Number(fpcClaims))
{
alert('Please Enter a Valid Numeral for Claims LumpSum Amount');
return;
}

eval(document.frmRI.txtClaimBonusComm.value = fpcClaims);


}

</script>
 
Back
Top