Files
auswertung
bootstrap
classes
config
controller
dashboard
datepicker
jquery
external
images
jquery-ui-themes-1.13.2
jqx
number
build
demo
numbertor
.gitignore
LICENSE
README.md
fm.numbertor.jquery.js
index.html
README.md
AUTHORS.txt
LICENSE.txt
bootstrap.min.css
bootstrap.min.js
controls.js
font-awesome.min.css
globalize.culture.de-DE.js
globalize.js
googletag.js
index.html
jquery-1.12.4.js
jquery-1.9.1.js
jquery-3.2.1.min.js
jquery-3.4.1.min.js
jquery-timepicker-1.3.5.zip
jquery-ui-1.12.1.zip
jquery-ui-themes-1.13.2.zip
jquery-ui.css
jquery-ui.js
jquery-ui.min.css
jquery-ui.min.js
jquery-ui.structure.css
jquery-ui.structure.min.css
jquery-ui.theme.css
jquery-ui.theme.min.css
jquery.cycle.all.min.js
jquery.dm-uploader.min.css
jquery.dm-uploader.min.js
jquery.min.js
jquery.mousewheel.js
jquery.timepicker.js
jquery.timepicker.min.css
jquery.timepicker.min.js
jquery.zip
main.css
modernizr-custom.js
modernizr-custom_input.js
modernizr.min.js
package.json
prism-coy.min.css
prism-javascript.min.js
prism.min.js
prx_search.js
style.css
ui-main.js
ui-multiple.js
js
language
lib
media
sql
survey
templates
.gitignore
config.inc.php
todo.txt
survey/jquery/number/numbertor
2023-03-14 14:47:50 +01:00
..
2023-03-14 14:47:50 +01:00
2023-03-14 14:47:50 +01:00
2023-03-14 14:47:50 +01:00
2023-03-14 14:47:50 +01:00
2023-03-14 14:47:50 +01:00

Numbertor

Numbertor is a jQuery-based addon for input boxes, giving them a number sanitizer. You can see a demo here.

Usage

include in head:
<script src="jquery-1.11.0.min.js"></script>
<script src="fm.numbertor.jquery.js"></script>
to activate replacement:
$('#inputBox').numbertor();

If you don't wan't to meddle with scripting, there is an alternative to activate replacement, by using inline markup.

<input type="text" class="numbertor" data-numbertor-allow-empty="true">
if you want to change settings:
$('#inputBox').numbertor({
    decimals: 'auto',        // number of decimals to use
    decimalSeperator: ',',   // the decimal seperator to be used
    thousandSeperator: '.',  // the thousand seperator to be used
    allowEmpty: false        // if false, then value will be set to 0 when empty
});

jQuery methods

Method Description
destroy This method is used to remove the instance of the plugin from the input box.
Method usage
$('#inputBox').numbertor('destroy');

Browser compatibility

  • IE 8+
  • Chrome 3+
  • Firefox 3.6+
  • Safari 5+
  • Opera 10.5+

The MIT License (MIT)

Copyright (c) 2014 Qodio

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.