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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -