title: Add an onClick event to append()
body: <p>I'm dynamically creating a div. I'd like to add a onClick() event to it.</p>
  
  <p>How do I add an onClick as in <code>&lt;div class="something" id="btnHome" onClick="return true"&gt;</code> to this?</p>
  
  <pre><code>abc.append(
      $('&lt;div /&gt;', { class: 'something', id: 'btnHome' })
  ); 
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I'm looking for an answer something like this </p>
  
  <pre><code>$('&lt;div /&gt;', { class: 'something', id: 'btnHome' onClick: 'return true' })
  </code></pre>