If you want to include the dashes and spaces in your data, simply use a short-text type question instead of a numeric type.
If you want to remove the dashes and spaces in your data, replace both instances of this:with this:
If you want to replace the dashes and spaces with commas in your data, replace both instances of this:with this:
If you want to remove the dashes and spaces in your data, replace both instances of this:
thisInput.val(document.getElementById('Zahlenanzeige').innerHTML);
thisInput.val(document.getElementById('Zahlenanzeige').innerHTML.replace(/\s+/g, '').replace(/-/g, ''));
If you want to replace the dashes and spaces with commas in your data, replace both instances of this:
thisInput.val(document.getElementById('Zahlenanzeige').innerHTML);
thisInput.val(document.getElementById('Zahlenanzeige').innerHTML.replace(/\s+/g, '').replace(/-/g, ','));