Thread: Onblur issue

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    1
    Rep Power
    0

    Onblur issue


    I am using the struts framework. What I am trying to accomplish here is to display an existing value and the user can input/modify the value as needed. The onblur event is not getting triggered when the value in the text box is changed. I even tried onchange. Anyi ideas?

    /**** Doesn't trigger the function pdmessage() ******/
    <td style="font-family: verdana;font-size: xx-small" align="center">
    <input type="text" size="2" maxlength="5" name="processMyForm" value="<bean:write name="fac" property="myPrct" />" onblur="mymessage();" /> </td>

    /**** the following generates the alert ***/
    <td style="font-family: verdana;font-size: xx-small" align="center">
    <input type="text" size="2" maxlength="5" name="processMyForm" value="<bean:write name="fac" property="myPrct" />" onblur="alert('test')" /> </td>
  2. #2
  3. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,317
    Rep Power
    7170
    Your onblur code says "mymessage", but your comment says "pdmessage". That would be my first guess.
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around

IMN logo majestic logo threadwatch logo seochat tools logo