简体   繁体   English

掌握php中Bootstrap滑块的值?

[英]Grab the value of Bootstrap slider in php?

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? 如何使用post方法获取默认值?
I tried placing the value="5" but it doesn't show any value at all. 我尝试放置value="5"但它根本不显示任何值。

Any idea of grabbing the value in php? 任何想法在php中获取价值?

请查看此文档以了解引导程序滑块http://seiyria.github.io/bootstrap-slider/ $('#ex1').slider({ formatter: function(value) { return value } });

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM