troubleshooting Question

A jquery way of saying if href="#someAnchor"

Avatar of jeremyBass26
jeremyBass26Flag for United States of America asked on
JavaScript
13 Comments1 Solution969 ViewsLast Modified:
I was try to find a way to do this.. any know?

I want to say

if a href="#someAnchor" {

} else if {
$(document).ready(function(){
   $('a').click(function(){
      $('div#hideMe3').toggle();
   });
 });



This is what is here
$(document).ready(function(){
   $('a').click(function(){
      $('div#hideMe3').toggle();
   });
}

and set all across the site...  but there are times when it should not be respected... like most of the anchors... I'm look for may-be a none regexp more jquery way?  I was trying to use regexp but still new at it and was not figuring it out... also a side note ... on this one I'm trying to make sure it work from IE 6 to 7 through all of FF and Safari... still learning the jquery way of things... thanks for the help on this...
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 13 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 13 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros