[theme-reviewers] using onclick attribute in the temlplates
Jose Castaneda
jomcastaneda at gmail.com
Sat Aug 24 15:05:12 UTC 2013
If you're using jQuery, you would just use something like:
$( "#selector" ).on( "click", function(){ //things you need to run } );
or
$( "#selector" ).on( "click", xyz );
That way you maintain your HTML and JavaScript as separate as possible.
On Sat, Aug 24, 2013 at 6:43 AM, priyanshu mittal <
priyanshu.mittal at gmail.com> wrote:
> I want to pass category name and couple more parameters in the function
> ....
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20130824/621fe7b5/attachment.html>
More information about the theme-reviewers
mailing list