Javascript plugin declaration
Hello everyone! I am a javascript newbie, but I do know a fair amount about html and css. How do you declare the javascript plugins on the html document? Any help would be greatly appreciated! In particular the dropdown menus. I have been having a lot of trouble with them.
Thanks Jon! I will give that a shot.
I tried this and it didn't work. It seems that none of the plugins are working.
<script type="text/javascript">
$(document).ready(function() {
$("a[rel=tooltip]").tooltip({
placement: "bottom"
})
});
</script>
Add that in your header, and modify the placement.
For most plugins, you don't need to do anything—just add the JS includes along with the latest version of jQuery and you'll be set. For tooltips and popovers, however, you do need to initialize them.
@jonlabelle's example works fine for me. If you need more help, try emailing the mailing list.