I have a form called #status. I would like to if you focus on the form input, #statusUpdate, then the submit button, #submitStatus should appear.
I’ve did this:
$("#statusUpdate").focus(function(){
$("#submitStatus").show();
});
$("#statusUpdate").blur(function(){
$("#submitStatus").hide();
});
This works fine, now my issue is when the #submitStatus appears, and you want to click on it, it disappears in the same splitsecond, because the #statusUpdate focus gets lost (blur) and therefore hides it.
How can this be fixed?
odd design 😉
You can wrap
hidein asetTimeoutlike thisor use jQuery
delay(requires adding some param tohide())