I was wondering how to code a onclick event for a jquery nav
when you click go
<a href="#go">Go</a>
it should look for the id in the href and .show() and .hide() the other items of the same class like class hide. Anyone show me the code?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ll first need to add a class or (preferably) an ID to your anchor, like this:
Not quite sure what you are asking, but here is what I think you mean. Try this:
This code is untested, but should work.
Based on your question, this is what I think you mean. 😉