the is an attribute called 'aria-valuenow' for that input that gets the current numeric value (without format)
http://jsfiddle.net/ma8zd7mg/1/
$("#spinner").spinner({
min: 0,
numberFormat: "C"
});
$("#test").click(function(){
alert($("#spinner").attr('aria-valuenow'));
});
EDIT (to answer your question in the comments)
To get the value after submitting in PHP, you could:
1. Create a place holder input that gets the numeric value of the spinner, and that value gets submitted
2. Use PHP to strip the extra format characters (the $, the . and and the extra zeros)
I recommend the first method, something like this:
$("#submit-btn").click(function(e){
//prevent the form submission
e.preventDefault();
//add a placeholder input with the value of the spinner
$("#my-from").append('<input/>', {
'type': 'hidden',
'name': 'spinner-value',
'value': $("#spinner").attr('aria-valuenow')
});
//now submit the form
$("#my-form").submit();
});
Then in PHP you can just get the 'spinner-value' input
<?php
$spinner = $_REQUEST['spinner-value'];
....
....
?>