<div dir="ltr"><div>If you're using jQuery, you would just use something like:<br></div><div><br></div><div>$( "#selector" ).on( "click", function(){ //things you need to run } );</div><div>or</div>
<div>$( "#selector" ).on( "click", xyz );</div><div><br></div><div>That way you maintain your HTML and JavaScript as separate as possible.</div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Sat, Aug 24, 2013 at 6:43 AM, priyanshu mittal <span dir="ltr"><<a href="mailto:priyanshu.mittal@gmail.com" target="_blank">priyanshu.mittal@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I want to pass category name and couple more parameters in the function ....</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br></div></div></div>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br></div></div>