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

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -