Link to home
Start Free TrialLog in
Avatar of Camillia
CamilliaFlag for United States of America

asked on

How can I drill down the elements to find one specific <a> element?

I want to remove the class from <a> element. I can't use $('a').removeClass('k-link') because I have other elements with that class.

There has to be a way to drill down.

1. This finds the div
var tabDetail = $("div[data-role='tabstrip']");

Now, how to keep drilling down to
<a class="k-link" href="#tabStrip_80137-1"></a>

Open in new window


User generated image
ASKER CERTIFIED SOLUTION
Avatar of Rob
Rob
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Camillia

ASKER

Thanks, Rob. Let me see
Thanks Camilla :)

This is a good reference for the most commonly used css selectors (which is what you're passing to jQuery to select an element): http://www.w3schools.com/cssref/css_selectors.asp
Thanks, Rob