java - Using JQuery Mask Plugin with JSF -


i´m trying add mask <h:inputtext> monetary value:

<h:inputtext id="preco" class="input-medium monetary-value" />  <script>$(function() {$('.monetary-value').mask('#.##0,00', {reverse: true});}</script> 

as stipulated in doc of plugin on link: http://igorescobar.github.io/jquery-mask-plugin/, it's being compilated this:

enter image description here

and doesn't let me type anything. changed 0 9, lets me type on place of zeros, it's still behaving diferent of demo on docs page.

can me this?


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -