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

  $ ("a.navigation"). Click (function () {warning ("hello");});   

Finally, find out what code worked, if someone has this problem then I use it here. Thanks to everyone who helped !!! // Navigation $ (document) .ready (function () {$ ("a.navigation"). Click (function () {warning ("hello");})} );

You must first stop the default task. Try it out:

  $ ("a.navigation"). Click (function (event) {event.preventDefault (); Alert ("Hello");});    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -