$(document).ready(function () {
$("[data-role=content]").not("#ft").children().live({
mouseover: function () { $(this).css({ border: "1px solid gray" }); },
mouseleave: function () { $(this).css({ border: "0" }); } });
});
This is not working. The border not shown.Can anybody tell me where i am wrong?
From the
.livedocumentation:Therefore
$(...)....children().live()won’t work.Use
.oninstead:Unfortunately it does not seem to be possible to just use
> *as selector for the event delegation. Of course[data-role=content] > *only works properly if the[data-role=content]elements are not nested.DEMO