We help IT Professionals succeed at work.
Get Started

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

AidenA
AidenA asked
on
888 Views
Last Modified: 2012-05-11
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?

Comment
Watch Question
Commented:
This problem has been solved!
Unlock 2 Answers and 5 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE