title: Is it in good style using html5 data attributes with javascript
body: <p>I am using html5 data attributes to store data like target dom and initialize events with jQuery delegation method.
  For example,</p>
  
  <pre><code>&lt;a href="#" data-target="#target" data-action="/update"&gt;edit&lt;/a&gt;
  </code></pre>
  
  <p>which means clicking it enables editing of #target and will send updating request to /update through ajax call.</p>
  
  <p>I am wondering whether this is in good style and has some potential problems.</p>
  
  <p>Thanks a lot.</p>