Want the background color of the 40x40px box automatically change by entering desired color in input field. I need both solutions, with jQuery and without (if it is possible).
I wrote some code, but got stuck when tried to bind entered value in input field with value of background color proprety in jQuery code...
HTML code
<div>
   <span>Enter color (Hex Code):</span>
     <span> <input class="pickedColor" type="text"/> </span>                      
</div>
</br>
<div class="elementToChange" style="height:40px; width:40px; border:1px solid black"></div>jQuery code
$('.pickedColor').on('change', function() {
    $('.elementToChange').css('background-color' : 'some value');
}) 
     
     
     
     
    