title: jquery get a custom (made up) Attribute value
body: <p>I have a the following html piece : </p>
  
  <pre><code>&lt;div onClick="javascript:getComments(this);" store-id="143568" class="CountryRow" style="padding: 4px;"&gt;&lt;div class="flag flag_az"&gt;&lt;/div&gt; &amp;nbsp; Azerbaijan&lt;/div&gt;
  </code></pre>
  
  <p>and I would like to create a jquery function to get the value of <code>store-id</code>. I have the following however its not working : </p>
  
  <pre><code> getComments = function(input) {
     fValue = $(input).val( $(input).attr("store-id") );
     alert('the ID :'+fValue);
   }
  </code></pre>
  
  <p>can someone be kind enough to tell me what it is that I am doing wrong.</p>