I am trying to change only the alpha channel in the background-color of a div element(using a slider). But I don't know how to do It. Here is my code:
$(function() {
$( "#slider" ).slider({
range: "min",
value: 50,
min: 0,
max: 100,
slide: function( event, ui ) {
// While sliding, update the value in the alpha div element
$('#idOfMyDiv').css('background', rgb(,,,ui.value) ); //I don't know what to do here
}
});
});