Custom Validation on a repeater element

I’m happy with using repeater scope from an event source, but I’m interested in trying to perform custom validation on the input fields in the repeater as per illustrated code:

where $w(‘#inpA) and $w(’#inpB) are the two input text fields in the repeater container. The custom validation section above is in the page onReady section.