I'm using 1.7.2 in which I understand this should work:
// cell is a jquery representation of a <td> element
cell.append($("<input/>", { "type": "text" }).val(content));
cell.children()[0].focus();
cell.children()[0].on("blur", function() {
alert("blur");
}
The input box is appended, grabs focus and then the javascript console tells me:
Uncaught TypeError: Object #<HTMLInputElement> has no method 'on'
I'd be grateful if anyone knows how I can catch the blur/focusout event.