javascript - How to get HTML5 Range Slider's value in PHP? -


i have html5 range slider. can send value php? send email value.

html:

 <div class="unit">    <div class="slider-group">         max value:    <label id="1-h"></label>   </div>   <div id="slider-1-h"></div> </div> 

javascript:

$(function() {     $( '#slider-1-h' ).slider({         range: "min",         min: 0,         max: 300,         value: 99,         slide: function( event, ui ) {             $( '#1-h' ).html( ui.value );         }     });     $( '#1-h' ).html( $( '#slider-1-h' ).slider( 'value' ) ); }); 

ok fine. , now, can send this? have no input box. can`t use $_post[""] or?

:/

in jquery add:

change: function(event, ui) {       $('#slidervalue').attr('value', ui.value);     } 

in form add:

<input type="hidden" name="slidervalue" id="slidervalue" value=""> 

Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -