title: user-defined attribute on element
body: <p>how can you put a user-defined attribute on a html element and then find the element with jquery?</p>
  
  <pre><code>var btn_edit = $('&lt;input class="my_class" userattribute="test" type="button" value="edit" /&gt;');
  </code></pre>
  
  <p>have read about something i CSS where you can do something like this</p>
  
  <pre><code>.my_class[userattribute='test']{
  
  }
  </code></pre>