var func = function()
{
$(this).hide();
$parent = $(this).parent();
$parent.removeClass('my_signature_mouseover');
var text = $(this).val();
var $span = $("#status span");
$span.text(text);
$span.show();
};
$("#status input").keyup(function (e) {
var keyCode = e.keyCode || e.which;
if (keyCode == 13) {
func();
}
}).blur(func);
I want to make func
run if blur or pressing "Enter" on it.
But the above code works only when blur,
in the case of pressing "Enter",it reports "Permission denied to access parentNode".
Although I know it's something related with this
keyword in different context,I've no idea how to fix it.