Inputmask icon indicating copy to clipboard operation
Inputmask copied to clipboard

formatting a <span>

Open punchi opened this issue 11 years ago • 2 comments

Tried (but failed) to inputmask a value for a < span >, it's possible? <span id="total" class="inputmask_moneda">1234567</span> --> 1,234,567.00

It looks "autoNumeric" plugin have the option, but I don't want to use 2 plugins, one for inputs (inputmask) and other to format (autoNumeric), I'm already using jquery.inputmask

punchi avatar Oct 28 '15 19:10 punchi

@punchi ,

Add the contentEditable="true" attribute. or do you just want to set the formatted value in the span?

RobinHerbots avatar Oct 28 '15 21:10 RobinHerbots

Thank you! :D went back to "jquery.inputmask-3.2.2" too, looks like I was stuck with a dev version.

punchi avatar Oct 28 '15 23:10 punchi