title: Append custom attributes to a DOM node
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/427262/can-i-just-make-up-attributes-on-my-html-tags">Can I just make up attributes on my HTML tags?</a>  </p>
  </blockquote>
  
  
  
  <p>Hi,</p>
  
  <p>I am not sure if what I am asking is even possible, but I'd like to be able to add a custom (nonrendered) propery to an existing HTML DOM node. </p>
  
  <p>For example, if I have a simple DOM as below:</p>
  
  <pre><code>&lt;body&gt;
   &lt;p&gt;
    &lt;span id="aSpan"&gt;&lt;/span&gt;
   &lt;/p&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>.. I'd like to be able to add a custom property to the span 'aSpan' to store a numeric variable.</p>
  
  <p>Is this possible and if so, what is the best way to do it?</p>
  
  <p>Thanks,</p>