Having a total mind blank here.
Hoping you can help.
How would I alter this argument to be when the attribute ‘href does not start with #overlay’…
if(this.getTrigger().attr("href")){
// stuff in here
}
Thanks you wonderful people.
Kevin
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.
If you want to use jQuery selectors:
Edit: In your case where you already have only one item and want to check its
hrefvalue, the selector solution performs worse than just comparing a slice of the attribute to'#overlay'as the other answers here have shown. I just posted my solution to show there is more than one way to do it.