title: How do I pass a custom attribute to a function?
body: <pre><code>&lt;select data-myattr="123" id="cboTest" 
          onchange="SayHello(this.data-myattr)"&gt;
  </code></pre>
  
  <p>This doesn't work. If I take the <code>data-</code>off of it it, it works, but from what I've read, it is html5 safe to do it that way. However, doing it that way, I get: <strong>"Microsoft JScript runtime error: 'myattr' is undefined"</strong>. </p>
  
  <p>This is my super-complex function:</p>
  
  <pre><code>function SayHello(msg) {
      alert(msg);
  }
  </code></pre>
  
  <p>Thanks in advance.</p>