jQuery - Change the CSS of an Element Using jQuery

Tell us what’s happening:
Describe your issue in detail here.

So I have solve the question and I can see output but when I run it show problem as not solved
This is the question : Change the CSS of an Element Using jQuery
This is my solution : $(“#target1”).css(“color”, “red”);

Your code so far

  $(document).ready(function() {
    $("#target1").css("color", "red");


<!-- Only change code above this line -->

<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>
  <div class="row">
    <div class="col-xs-6">
      <div class="well" id="left-well">
        <button class="btn btn-default target" id="target1">#target1</button>
        <button class="btn btn-default target" id="target2">#target2</button>
        <button class="btn btn-default target" id="target3">#target3</button>
    <div class="col-xs-6">
      <div class="well" id="right-well">
        <button class="btn btn-default target" id="target4">#target4</button>
        <button class="btn btn-default target" id="target5">#target5</button>
        <button class="btn btn-default target" id="target6">#target6</button>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: jQuery - Change the CSS of an Element Using jQuery

Link to the challenge:

Greetings, I don’t think I am failing the task I think there is a bug, currently, I am solving Front End Development Libraries in that jQuery section and there are three sub-section 1. Change the CSS of an Element Using jQuery 2. Target the Parent of an Element Using jQuery. 3. Target the

My guess is you have a third-party extension that is blocking jQuery from working properly. You would need to turn such extensions off. If you open the browser console (Ctrl + Shft + J in Chrome), you might see some kind of error message when you try to Run the Tests. Post a screenshot of what the console looks like, so we can see what might be going on.

Thanks for pointing that out.

That doesn’t look like the built-in Night mode color scheme to me (looks nice though).

If you are using a dark mode extension it will change the colors and as a consequence, the tests can fail. There is a built-in dark mode you can use (Night mode) instead of the extension.

1 Like

Thanks for the help I just turn off the extension as you have suggested and it works.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.