Unable to send email variable in jquery
<p>I am generating below data on a jquery oncliick event.</p>

<pre><code>      $('&lt;tr class="row-drop"&gt;'+
                '&lt;td colspan="'+tr.children().length+'"&gt;'+
                     '&lt;div class="float-right"&gt;'+
                       '&lt;button type="submit" class="button glossy mid-margin-right with-tooltip" title="This feature is currently not available "&gt;'+
                        '&lt;span class="button-icon"&gt;&lt;span class="icon-mail"&gt;&lt;/span&gt;&lt;/span&gt;'+
                        'Send mail'+
                    '&lt;/button&gt;'+
                    '&lt;button type="submit" class="button glossy with-tooltip" onclick="callnow('+pname+'+,'+pemail+','+pnumber+','+pcode+','+pdelay+')"     title="This feature is currently disabled"&gt;'+                         '&lt;span onclick="callnow(pname,pemail,pnumber,pcode,pdelay);" class="button-icon green-gradient"&gt;&lt;span class="icon-phone"&gt;&lt;/span&gt;&lt;/span&gt;'+
                        'Call Now'+
                    '&lt;/button&gt;'+
                    '&lt;/div&gt;'+
      '&lt;div class="float-left"&gt;'+
  //              '&lt;strong&gt;Prospect Name:&amp;nbsp;&amp;nbsp;&lt;/strong&gt;&lt;span style="color:white;"&gt;'+date+'&lt;/span&gt;&lt;br&gt;'+
                '&lt;strong&gt;Prospect Title:&amp;nbsp;&amp;nbsp;&lt;/strong&gt;'+title+'&lt;br&gt;'+
                '&lt;strong&gt;Prospect Company:&amp;nbsp;&amp;nbsp;&lt;/strong&gt;'+company+'&lt;br&gt;'+

                '&lt;strong&gt;Track id:&amp;nbsp;&amp;nbsp;&lt;/strong&gt;'+ trackid +'&lt;br&gt;'+



            '&lt;/td&gt;'+

        '&lt;/tr&gt;').insertAfter(tr);
</code></pre>

<p>Which is appearing properly now there is line a in code </p>

<pre><code>onclick="callnow('+pname+','+pemail+',+pnumber+,+pcode+,+pdelay+') &gt;'
</code></pre>

<p>Where pname and pemail are the javacsript variable I am populating thoose from the same function I have generated previously </p>

<p>My problem is while clicking on <code>call now</code> button I am getting the javascript error which is </p>

<pre><code>SyntaxError: missing ) after argument list
[Break On This Error]   

callnow(Naveen,nma@srdia.com.au,+pnumber+,+pcode+,+pdelay+);
</code></pre>

<p>Please help me out how to solve this issue .</p>

<p>I tried putting pemail in <code>encodeURI</code>   but still getting the same ,</p>
