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! While you're at it, check out some resources Treehouse students have shared here.

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

JavaScript jQuery Basics (2014) Creating a Simple Drawing Application Perform: Part 3

John Wilson
John Wilson
11,739 Points

My color slider is not adjust the color box opacity when I slide like Andrew's does, it waits until I release the mouse.

My color slider is not adjust the color box opacity when I slide like Andrew's does, it waits until I release the mouse.

https://w.trhou.se/hq9anvs19t

1 Answer

Hello, the teacher notes of the previus video say this, it should fix your problem: Changes to Chrome

Chrome used to allow you to use the .change() method on a range input type but they implemented incorrectly and wasn't compliant with the W3C standards. This was fixed in a later version of Chrome. So this code no longer works:

$("input[type=range]").change(changeColor);

Now you use the input event instead like this:

$("input[type=range]").on("input", changeColor);