p-slider and setvalue
Posted: 05 Feb 2018, 20:33
Hi,
In the showcase of PrimeUi, for p-slider we can read that a method setValue(val) is available. How can i set the value of a p-slider on the client please ?
I tried this :
<p-slider id="slider"> </p-slider>
And in the js :
$("#slider").setValue(50);
but the slider is not update and i get the error : TypeError: $(...).setValue is not a function ...
Can anyone help me please ?
In the showcase of PrimeUi, for p-slider we can read that a method setValue(val) is available. How can i set the value of a p-slider on the client please ?
I tried this :
<p-slider id="slider"> </p-slider>
And in the js :
$("#slider").setValue(50);
but the slider is not update and i get the error : TypeError: $(...).setValue is not a function ...
Can anyone help me please ?