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!
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 trial
Yaswanth Goli
6,872 PointsSelectors
i have used jquery ui range for styling the <input type='range'>
<div class=".input_color">
<input type="range" id="red_color"><br/>
<input type="range" id="green_color"><br/>
<input type="range" id="blue_color"><br/>
</div>
After getting interpreted the code is changing to
<div class=".input_color">
<div class="slider"><div class="progress"></div><a class="slider"></a></div>
<input type="text" id="red_color">
<div class="slider"><div class="progress"></div><a class="slider"></a></div>
<input type="text" id="green_color">
<div class="slider"><div class="progress"></div><a class="slider"></a></div>
<input type="text" id="blue_color">
</div>
Now my problem is , I need to change the background-color of <a>
to respective color
eg : i would like to select <a>
tag by using id of`<input type="range"/>
and apply respective color
please suggest me a selector
Thanking you in advance

Adam Sackfield
Pro Student 19,663 Points
Adam Sackfield
Pro Student 19,663 Pointsno space after input though

Yaswanth Goli
6,872 PointsI know it but thanks for your reply
1 Answer

Homer Gaines
262 PointsThere seems to be a syntax issue with the way you have added your class to the div. You have ".input_color. It should be written without the "." before input_color.
Adam Sackfield
Pro Student 19,663 PointsAdam Sackfield
Courses Plus Student 19,663 PointsYou almost had it yourself you could use
input [type="range"]
This will select all inputs with the type attr of range.