jQuery OnClick for Hyperlink
-
I need some help getting a specific jQuery plugin to work with my wordpress installation.
From header.php:
<?php wp_enqueue_script('jquery'); ?> <script type="text/javascript" src="https://raw.github.com/ThrivingKings/Apprise/master/apprise-1.5.full.js"></script> <link rel="stylesheet" href="https://raw.github.com/ThrivingKings/Apprise/master/apprise.css" type="text/css" /> <script> $(document).ready(function() { apprise('Server Stats', {'verify':true,'animate':true}, function(r) { } } </script> <?php wp_head(); ?> </head>
As you can see, I’ve included jQuery, the script’s CSS theme, and it’s jQuery/PHP library.
I’m all setup and ready to use it, however I need to add a single onclick function to the link I want to use it on.
<a href="#" onclick="apprise('This is the jQuery Alert!');">Link Name</a>
I need to add that onclick attribute to this menu item:
However I can’t find the darn thing!?
I’d appreciate any help that you guys can provide! ??
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘jQuery OnClick for Hyperlink’ is closed to new replies.