how to get a custom data value from a highlighted class element using jquery?
<p>how to get a custom data value from a highlighted class element using jquery?
this does not work...</p>

<p><code>$("#list li.highlight").attr("data-keyValue");</code> &lt;--- is this possible with another syntax for this to work?</p>

<pre><code>$('#list').append('&lt;li data-keyValue= "' + list_keyValue + '"&gt;'  + list_dataValue + '&lt;/li&gt;');

 .highlight
 {
    background-color: white;
    color: black;
 }
</code></pre>
