问题是两者中只有一个同时工作。
我正在使用的代码如下
<h:outputScript library="primefaces" name="jquery/jquery.js" target="head"/>
<h:outputScript name="jquery.maskMoney.js" library="js" target="head"/>
<script type="text/javascript">
$(".currencyInput").live("focus", function(){
$(this).maskMoney({thousands:".", allowZero:false, allowNegative:false, decimal:","});
$(this).bind('paste', function(){return false;});
$(this).bind('drop', function(){return false;});
})
</script>
然后我只是将样式类放入一些输入中......
当我从 Prime 的面具中取出第二行时,显然 maskMoney 不起作用,否则,maskMoney 起作用而 Prime 的面具不起作用。
有什么建议么?
提前致谢..