Reputation: 125
So lately I've been working on a screen that has this Grid in it (Kendo).... One of the templates that the Grid uses displays a simple button like this:
<input type="button" class="iqs-review-btn btn btn-primary" value="REVIEW" />
And I'm trying to bind a click action on it so I can do some stuff that I need to... but I can't seem to bind it correctly. This is the JS code I'm using to add the event:
$('resultsGrid').on('click', 'input.iqs-review-btn', function (e) {
}
});
I already binded other elements inside the grid with different events and they all seem to work fine but for whatever reason this button does nothing when clicked... Thanks a lot for any help you can provide and have a great day! :)
Upvotes: 0
Views: 210
Reputation: 3760
It may be possible that Kendo Grid is refreshed and you lose the event.
Try this
$(document).on('click', 'input.iqs-review-btn', function () {
});
Upvotes: 0
Reputation: 4746
Perhaps your jquery element selector is missing a dot or a hash?
$('.resultsGrid')
or
$('#resultsGrid')
Upvotes: 2