title: how to user Json Value in anchor tag data attribute?
body: <p>I have an anchor tag which is used to store 'Search-type' in its data-search_type attribute.</p>
  
  <p>on anchor tag click this value is used by $.post ajax method to search for data based on the numbers,
  But if you look properly the because of ""(double quotes) in json the data-search_criteria stores "[" as value and ignores the rest of the data.</p>
  
  <p>so my question is what to do to make this data available to $.post method?</p>
  
  <pre><code>&lt;a class="showresult" data-search_type = "Search by Cost" data-search_criteria="["0","1"]" href="#"&gt;Open Search&lt;/a&gt;
  </code></pre>