autoNumeric Problem
Posted on github issue section for autonumeric issue # 191
HTML
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="https://raw.githubusercontent.com/BobKnothe/autoNumeric/master/autoNumeric-min.js"></script>
<title>autoNumeric</title>
<body>
<div id="main" style="width:900px; border:#000000; background-color:#FFFFFF">
<div id="content" style="padding: 5px 10px 10px 10px; margin-top:0px">
<form name="form1" method="post" action="">
<table width="880" border="0">
<tr>
<td width="33%"><input class="currency" type="text" autocomplete="off" value="15 000 000 000.45"></td>
</tr>
</table>
</form>
</div>
</div>
</body>
JavaScript
$(document).on('focus', '.currency', function(e){
if ($(this).hasClass('autoNumeric') === false) {
console.log('autoNumeric binded');
$(this).addClass('autoNumeric').autoNumeric('init', {aSep: ' ', aForm: false});
}
});