javascript in jquery popup
<p>Am trying to pass a argument in jquery html pop up.But am not able
        to do so.The below is my code. </p>

<pre><code>var emailid =result.rows[0].emailid;
        var html =                     '&lt;input type="button" class="closebtn" value="close"/&gt;' 
                                           + 'Firstname  :'+result.rows[0].firstname+'&lt;br/&gt;'
                                           + 'Lastname   :'+result.rows[0].lastname+'&lt;br/&gt;'
                                           + 'Emailid    :'+result.rows[0].emailid+'&lt;br/&gt;'
                                           +'&lt;input type="button"  value="Approve"                        
    onClick="approve('emailid');"/&gt;;



  JAVASCRIPT is
             function approve(id){   
              var email=id;    
              alert(email);  
          }
</code></pre>

<ol>
<li><p>It says missing something in my variable html.I tried passing like</p>

<pre><code>    `onClick="approve(emailid);".`  
</code></pre>

<p>Even it doesnt work.Can you please pointout wat error am doing?</p></li>
</ol>
