javascript - Jquery get class name -
OK, then resolves my problem. I have a PHP file running that pulls my menus apart and Also all the content also So for example my index.php load index.php menu.php and loading a dropdown.js file. The menu is working and drops down. My problem is that I want to call a cloud of navigation and would like to list the names "li & gt; a and id; id" which will be home, about us, etc. I have many different Try it in ways that understand why I can not understand a simple script to do this in JPE. Anyone have any suggestions? Below is my code for the menu page. This is my code which I was just trying to do for a warning that would not work. // Navigation Finally, find out what code worked, if someone has this problem then I use it here. Thanks to everyone who helped !!! You must first stop the default task. Try it out:
$ ("a.navigation"). Click (function () {warning ("hello");});
// Navigation $ (document) .ready (function () {$ ("a.navigation"). Click (function () {warning ("hello");})} );
$ ("a.navigation"). Click (function (event) {event.preventDefault (); Alert ("Hello");});
Comments
Post a Comment