title: jQuery blur() and click()
body: <p>I have the following jQuery functions:</p>
  <ol>
  <li><p>Submits the form</p>
  <p>$(&quot;.content&quot;).delegate('.entryButton','click', function() {
  var form = $(this).closest(&quot;form&quot;);
  var id = form.attr('id');
  var text = form.find(&quot;textarea&quot;).val();
  Sijax.request('add_entry', [id, text]);</p>
  <pre><code>     //Prevent the form from being submitted (default HTML)
       return false;
   });
  </code></pre>
  </li>
  <li><p>Enlarge the form and show the entry button</p>
  <p>$(&quot;textarea&quot;).focus(function() {
  $(this).css('height', '80px');
  var button = $(this).parent().next().children();
  button.css('visibility', 'visible');
  button.css('height', '20px')
  });</p>
  </li>
  <li><p>Makes the textarea smaller and hides the button</p>
  <p>$(&quot;textarea&quot;).blur(function() {
  $(this).css('height', '30px');
  var button = $(this).parent().next().children();
  button.css('height', '0px')
  });</p>
  </li>
  </ol>
  <p>This happens when I try to make an entry:</p>
  <ul>
  <li>Click in the field (focus event), the field grows larger and shows the entry button</li>
  <li>Enter text</li>
  <li>Click on the entry button first time: <strong>Now the blur event fires which makes the field smaller again but the click event doesn't fire</strong></li>
  <li>If I click the button again the form does submit</li>
  </ul>
  <p>I think this means the blur and click event interfere with each other?</p>
  <p><strong>You can find a fiddle of the problem <a href="http://jsfiddle.net/2nUba/" rel="nofollow noreferrer">here</a>.</strong> When you press the button with the field focused, it blurs the field but doesn't enter it. When you press the button with the field blurred the entry does get submitted.</p>
  <p>Any ideas?</p>