Two problems:
- The
change
is a string, not a magic variable. Add the quotations around it. - Also the on method needs to be called on any anscestor of the CharacterID. For most cases, its best to use
$(document).on()
.
.
$(document).ready(function(){
$(document).on("change", "#CharacterID", (function () {
alert("I've Changed");
//var id = $('#CharacterID').val();
}));
});
You can see this working here: http://jsfiddle.net/h3q5d/
With your full page, and jquery loaded - it also works: http://jsfiddle.net/vgMdF/1/