0

simplest thing ever but here:

$j(".srch-txt").click(function() {
$j(this).css("color:" "#155D97")
});

$j is a no conflict

So it's pretty easy to see what I'm trying to do: When the .srch-txt element is clicked, change its color to #155D97.

Where have I gone wrong?

4 Answers 4

6

You're forgetting a comma, and you have an extra colon:

$j(this).css("color", "#155D97");
Sign up to request clarification or add additional context in comments.

2 Comments

I missed that comma. Nice catch.
@Nalum: Thanks! I'm extra happy with the way "comma" happened to be followed by ",", and "colon" happened to be followed by ":" :P
2

Change color: to color see if that does it.

Comments

1

You don't need the ':' after the css property.

Comments

1
$j(".srch-txt").click(function() {
$j(this).css("color", "#155D97")
});

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.