Can someone enlighten me in the jQuery delegate which events are being processed and which are not. The following code does not work
$("#browser").delegate( ".photo", {
"load": function(e) {
alert("photo loaded");
}
});
but the following code works
$(".photo").load( function(e) {
alert("photo loaded");
} );
I am also trying to delegate the changeData event to a class that also does not work
$("#browser").delegate( ".thumbnail", {
"changeData": function(e, prop, value) {
alert( prop + " = " + value );
}
});
but the following code works
$(".thumbnail").bind( "changeData", function(e, prop, value) {
alert( prop + " = " + value );
}
source
share