Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialBryce Linch
7,495 PointsAlways getting frustrated...!
Not sure what I'm doing wrong? I think it's declaring the external class with the links? Not sure...
1 Answer
akshaythakur
Courses Plus Student 34,019 PointsHey, it is easy class name="external" attribute="target" value="_balank"
you have to use "attr()" method syntax for that method is like this {class or id} . attr(attribute,value);
so answer is $(".external").attr("target","_blank");
Bryce Linch
7,495 PointsBryce Linch
7,495 PointsAnd I'm not sure if it deleted my code...