For some reason my jQuery code is not able to find the button by class.
This is what I have:
$(document).ready(function () {
$(".deleteItem").click(function () {
alert("Handler for .click() called.");
});
});
The html I have for the button:
<input type="button" value="Remove" class="deleteItem btn btn-danger btn-xs pull-right" id="testDeleteItem">
When the page is loading, the button is not recognized. The button is in hidden div and its only shown when the user is hovering over a control.
What do I need to change to make this work?