Pass a slider value to form hidden field


#1

Hi, some jquery advice is appreciated!

I am setting up two simple input sliders that I’d like to pass to two respective hidden form fields. Each slider also has a read-only input field to see the selected value.

For example:

I’ve also included this script for onchange event:

Now I’d like “value1” to pass to a hidden field, let’s call it “hiddenfield1”.


#2

The missing code snippets…

<input type="text" id="value1" readonly>  
 
<script type="text/javascript"><br />
  function updateTextInput(val,id) {<br />
    document.getElementById(id).value=val; <br />
  };<br /> </script>```