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
SangeetaSangeeta
2 Answers 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
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
lang-js