Javascript/jQuery focusout event that changes layout causes click event to not fire
问题 I have a field that when you leave focus on it, it changes the layout of the page. I also have buttons on the page that submit my form. If I go into my field and type a value, then click the button, the button click event never fires. This seems to happen because the layout is changing before the click event gets fired, which means the button changes places. By the time the click event fires, it's firing on an empty area, not the button. Here is a jsfiddle of the issue: http://jsfiddle.net