Web Analytics Made Easy -
StatCounter onBlur not Working - CodingForum

Announcement

Collapse
No announcement yet.

onBlur not Working

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • onBlur not Working

    My one more silly question from me.
    I have an JS function called from one of my JSP on Blur on a text box.
    But the JS function is not being called.
    I am pasting the code below.

    Code:
    <td width="14%">Date of Losses: </td>
                <td width="14%"> 
                  <input type="text"  maxlength = 2 size=2 name="txtLossdd" value="<%=strLossdd%>" onKeyPress="checklength(this.value,document.frmECIWAClmSetup.txtLossmm);noenter()" onBlur="return checkDay(this)">-
    					<input type="text"  maxlength = 2 size=2 name="txtLossmm" value="<%=strLossmm%>" onKeyPress="checklength(this.value,document.frmECIWAClmSetup.txtLossyyyy);noenter()" onBlur="return checkMonth(this)">-
    					<input type="text"  maxlength = 4 size=4 name="txtLossyyyy" value="<%=strLossyyyy%>" onBlur="numeric(this)" onKeyPress="noenter()" onBlur = "return checkLossDate()">
    				</TD>
    The JS function


    Code:
    function checkLossDate()
    {
    	alert("Test");
    	var lossDD=document.frmSicsClmHdrSetup.txtLossddFrom.value;
    The first three lines of the function.The first alert not being called.
    I have used the same logic in one of my other JSP's.There it worked fine.
    I know i am missing some silly things.
    Please help me out people

  • #2
    Its working now.......i had used to onBlurs thats y it was not working

    Comment

    Working...
    X