click() not working
click() not working
I'm new to jQuery so be gentle. I'm trying to do a very simple function. User is displayed a table of Incidents. if they want to acknowledge an incident they click a button with class="delIncButton". I haven't even gotten to the Ajax part where it delete's that row out of the database. When I click on the button nothing happens.
HTML
<button class="delIncButton" name="2" value="2"> </button>
jQuery
$('.delIncButton').click(function(){
var $incID = this.val();
alert("ID = "+$incID);
});
When I click on the button, I get nothing. I've tried IE, FF, Chrome all on Windows. Other jQuery functions in the same page are working fine.
What am I doing wrong?
Tyler