javascript - Grab the value of Bootstrap slider in php?
138
Here is my code. I am using bootstrap for a slider input.
<input type="text" class="slider slider-primary" id="slider5" value="" name="question_five" data-slider-max="100" data-slider-value="5" data-slider-selection = "before" data-slider-handle="round">
How can I get the default value using post method?
I tried placing thevalue="5"
but it doesn't show any value at all.
Any idea of grabbing the value in php?
Answer
Solution:
Check This documentation for bootstrap slider http://seiyria.github.io/bootstrap-slider/
$('#ex1').slider({ formatter: function(value) { return value } });