Skip to Content
Former Member
May 10, 2018 at 06:40 PM

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"/>