oops. It should be 
$(/#.+$/.exec(this.href)[0]);

Danny


Danny Wachsstock wrote:
> 
> I'm looking at the HTML specs
> (http://www.w3.org/TR/1999/REC-html401-19991224/struct/links.html#edef-A)
> and hash doesn't look like a standard attribute. It seems to work for me
> in both IE and FF, but if it's not in the standard, your browser may not
> support it. You may be stuck with using the regular expression:
> $(/#.+$/.exec(this.href));
> 
> (The regular expression takes everything from the # to the end of the
> href)
> 
> Danny
> 
> 
-- 
View this message in context: 
http://www.nabble.com/Finding-element-that-matches-anchor-link-tf3234867.html#a8995031
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to