call jquery functions after inserting value in database
<p>I want to execute a jquery function like button click(), after php insert a record in DB.Is there any way to acheive this?</p>

<p>Thank you.</p>

<p>Edit</p>

<p>i tried to call jquery function like this</p>

<pre><code>if($uresult )       
                                        { 
                                         print '&lt;script type="text/javascript"&gt;';
                                         print '$("#buttonid").click(function (e2) {';
                                         print '$(".class").hide();';
                                         print '$(".class1").hide();';
                                         print 'e2.preventDefault();';
                                         print '});';
                                         print '&lt;/script&gt;';


                                         }
</code></pre>

<p>but this was not working.</p>
