How can I submit a form when a field (In this case the form only has one field) loses focus?
I tried this, but it's not working:
$("form").submit();
UPDATE
I forgot to mention that the form was created with jquery as well:
$("div").html('<form action="javascript:void(0)" style="display:inline;"><input type="text" value="' + oldValue + '"></form>');
This is probably why it won't submit, I think it's because the events aren't being observed.