title: How can I add a custom attribute to a <span> and read it in JavaScript?
body: <p>I want to have a jQuery/PHP site that uses <code>&lt;span&gt;</code> elements for the navigation links. I need to have a <code>value</code> attribute to use </p>
  
  <pre><code>$(".navLink").click(function() {
      window.location.href = "/index.php?page=" + this.value //or whatever
  });
  </code></pre>
  
  <p>I can't use <code>this.id</code> because it conflicts with other HTML elements. Is there any way to create and use a "dummy" HTML attribute?</p>