title: Trouble passing Guid to a Javascript function via onclick attribute
body: <p>I have a Ajax call and inside the ajax call's success function there a onclick.I need to pass a Guid value to a another function ,it shows me -1 (here i put alert)</p>
  
  <p>Ajax call</p>
  
  <pre><code> $.each(msg._allProd, function(index, item) {
      debugger;
      //item.PrdId is Guid like 00000000-0000-0000-0000-000000000001
      contect = contect + '&lt;div class="item"&gt;&lt;a class="item link" onclick="PrdOnClick(item.PrdId)"&gt;&lt;/div&gt;';
   });
  </code></pre>
  
  <p>And then pass that value to another function</p>
  
  <pre><code>function PrdOnClick(id) {
      alert(id); // this alert shows me -1
  }
  </code></pre>