Change event test
HTML
<script src="https://dl.dropboxusercontent.com/u/58926565/cdn/numeric.js"></script>
With Numeric.js: <input type="text" id="with" />
<br />
<br />
Without Numeric.js: <input type="text" id="without" />
JavaScript
$(document).ready( function () {
$("#with").change(function() {
alert("Change event has been triggered. New value: " +
$(this).val());
})
.numeric({ decimal : "," });
//.numeric()
//.numeric({ negative: false, decimal: false })
//;
$("#without").change(function() {
alert("Change event has been triggered. New value: " +
$(this).val());
})
//.numeric()
//.numeric({ negative: false, decimal: false })
;
});