troubleshooting Question

jquery: textbox contracts onblur and button beside it moves with it... and can't be clicked?

Avatar of AidenA
AidenA asked on
5 Comments2 Solutions889 ViewsLast Modified:
Hi, as the title suggests, I wondering what's the best way to deal with this situation. I have a textbox and button beside it (on the right side) in a flow layout. I use jquery to expand the textbox to the right which then pushes the button to the right also.

The problem is I want to contract the textbox back to it's original size when it loses focus (onblur even). But, if you have the situation where it loses focus because the user wants to click that button then it doesn't seem to work as the button moves to the left with the contracting textbox, but the click even doesn't appear to have been fired.

How exactly would I get around this situation so that the click even of the button fires before it moves to the left due to the contracting textbox because it's onblur even was fired?


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros