its weird that all my jquery events turn unresponsive after a ajax call. Im a load function call and once the jsp reloads all the events just do not respond. any help ?
the following is the code which triggers the function call.
$('#personTypeId').on('change', function() {
var selectId = document.getElementById("personTypeId").value;
if (selectId == 1 || selectId == 4 || selectId == 8) {
$("#directoryFilter").load("directory/filters #directoryFilter",{"selectId" : selectId });
}
});
.on()
. – jfriend00 Apr 28 '14 at 3:04$("#directoryFilter").on('event-name', 'target-eleement-selector', function(){})
– Arun P Johny Apr 28 '14 at 3:04