I wanted to change the min/max options of a slider when user enters a new value for the min/max, but in the documentation of easyui, its method 'option' only gets options and can not set. I also tried the following, but still did not work

:
$("#min")[0].addEventListener("input", function(){
var v = $("#min").val();
if (v <= 5 ) {
$("#myslider").slider('destroy').end().slider({
width: 300,
mode: 'h',
showTip: true,
value: 5,
min: v,
max: 10
});
}
else {
alert("out of bound(1-5): " + v);
}
}, false);