javascript - Disable keyup/keydown formatting when using $.number() - jQuery Number Plugin by Custom D -
how can disable keyup/keydown formatting when using $.number()?
jquery number plugin custom d https://github.com/customd/jquery-number
my code:
$( 'input' ).number( true, 2 );
what worked me unbinding 'keyup.format' , 'keydown.format' events element.
e.g
$( 'input' ).number( true, 2 ).unbind( 'keyup.format' ).unbind( 'keydown.format' );
also, manually format number, .number() plugin instantiated against input element.
e.g on blur event
... $( 'input' ).on( 'blur', function() { $(this).val( $(this).val() ); });
Comments
Post a Comment