increment/decrement .data() in jQuery
<p>Dom elements seems a perfect place to attach data that relates to that element, but accessing it is cumbersome code-wise, and probably inefficient too.</p>

<p>Currently I am doing something like this to increment:</p>

<pre><code>$('#the-thing').data({ counter: $('#the-thing').data('counter') + 1 })
</code></pre>

<p>Is there a faster way to increment a number stored in the .data() of a jQuery object?</p>
