php - Get values from javascript slider -
i want use bootstrap price range slider in shop, don't know how value php. have code in bootstrap-slider.js file:
$(function() { $("#pricelimit") .slider({}) .on('slide', function() { $('#output').html(this.value); }).trigger('slide'); });
and have code in html file:
<script> var slidervalue = ...... </script> <?php $slidervalue="<script>document.writeln(slidervalue);</script>"; ?>
what have put after 'var slidervalue' value slider?
<script> var slidervalue = $('#output').val(); </script>
that should work, assume value stored in id output, right ? if not working - can please provide html , js in codepen, jsbin ?
Comments
Post a Comment