Skip to Content
avatar image
Former Member

Adding onblur event to multiple input boxes

I have an input box that resides in each row of a table. I want to check the input of the box once the user moves off (blurs) the input box. I haven't been able to get an event listener to attach correctly and have tried multiple methods. Since the number of input boxes depends on the number of rows in the table I need to make sure it is attached to each input box. I'm using a Master-Detail layout for this and XML views.

<Input type="Number" class='quantityInput" width = "50px" value = "{path:'ItemModel>QuantityTaken',formatter:'com.uppr.util.Formatter.changeToInteger'}" maxLength="3"/>
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 10 at 07:31 PM

    use change event for the input box

    "Is fired when the text in the input field has changed and the focus leaves the input field or the enter key is pressed."

    Add comment
    10|10000 characters needed characters exceeded