Welcome to the Treehouse Community
Looking to learn something new?
Resize HTML element with jQuery and input[type="range"]
Hi! Let's say I have a
<canvas width="500" height="400" ></canvas>
And I have an
<input id="pWidth" type="range" min=300 max=1024 value=500>
I need a working jQuery method to change the width of the
html <canvas> to be the exact value that the
input[type="range"] has, even if it changes (draging the slider).
is not working.
Anyone knowing a working method here?