JQuery UI Spinner

JQuery UI Spinner

I have used alot of jQuery UI widgets in Form submissions, like datepickers, etc. I am having issues with the spinner. When I submit my form, the spinner input field is always 0. Here is my jQuery code:
  1. <script>
  2. $(function() {
  3. $( "#tpi_score" ).spinner({
  4. step: 0.01,
  5. min: 0,
  6. max: 5,
  7. });
  8. });
  9. </script>

  10. <!---Form input field--->
  11. <input id="tpi_score" name="tpi_score" value="0.00" size="5">