[Solved] How can I use an alert or form input to allow a user to set a value of a CSS parameter [closed]


JSFiddle

Use the prompt function and assign its return value via element.css()

$('#btn').click(function(e){
    var w=prompt("Enter new hue:","");
    $('#box').css('-webkit-filter','hue-rotate('+w+'deg)');
});

0

solved How can I use an alert or form input to allow a user to set a value of a CSS parameter [closed]