0

I need to add some css to a class. This is what I have so far:

$(document).ready(function() {
 $('.tech').css({ "border-bottom": "dotted 1px #0860a8", "text-decoration": "none" });
 $('.tech').Tooltip(onMouseEnter) 
});

Its not working. What can I do to show up for all class="tech"

ChssPly76
101k25 gold badges210 silver badges196 bronze badges
asked Sep 16, 2009 at 0:03

2 Answers 2

2

You're missing a dot...

$('.tech').css({ 
 "border-bottom": "dotted 1px #0860a8", 
 "text-decoration": "none" 
});

To select a class, use .classname and to select an id, use #id respectively.

answered Sep 16, 2009 at 0:05

Comments

2

Try this:

$('.tech').css({ "border-bottom": "dotted 1px #0860a8", "text-decoration": "none" });

(note the period before tech)

answered Sep 16, 2009 at 0:04

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.