26
rated 0 times
[
33]
[
7]
/ answers: 1 / hits: 15488
/ 12 Years ago, wed, november 14, 2012, 12:00:00
I'm using this:
$('.sizeChart').on('vclick', '.entry .ui-btn', function(e){
console.log( e )
console.log( e.currentTarget )
console.log( $( e.currentTarget )
console.log( $( e.currentTarget ).find('input.qtyInput') )
var qty = $( e.currentTarget ).find('input.qtyInput');
// do something
});
Which works, but $( e.currentTarget ).find(...)
seems awkward to me.
I can't bind directly to the input
because this binding will go dead on iOS3+4 after a couple of clicks. Binding to the closest ui-btn
works throughout.
Question:
Is there a better/easier/faster way to do the binding than what I'm using ?
More From » jquery