How use mask in input field in JSF 2 + RichFaces 4?
问题 I need to have some masks in my input fields in my form. I try to insert the jQuery.js and jQuery.MaskedInput.js as show in the code below: <h:head> <h:outputScript name="jquery-1.6.4.min.js" library="javascript" /> <h:outputScript name="jquery.maskedinput-1.3.js" library="javascript" /> <script> jQuery(function($){ $("#date").mask("99/99/9999"); $("#phone").mask("(999) 999-9999"); $("#tin").mask("99-9999999"); $("#ssn").mask("999-99-9999"); }); </script> <title>TITLE</title> </h:head> <h