i just stared working with JQuery for the first time and i have a simple question about changing css, this is my current code but i would like to be able to prompt for the color how can this be achieved?
$(document).ready(function() {
$("#change").click(function() {
$("#container").css("background-color", "blue");
});
ive tried this:
<input id="colorInput" type="text"/>
$(document).ready(function() {
$("#change").click(function() {
$("#container").css("background-color", #colorInput);
});
And alot of other ways but nothing seems to work.