<input id="IsCaseReviewsAddCarForm:stateNumber4" class="ui-inputfield ui-inputtext ui-widget ui-state-default ui-corner-all" type="text" title="Улсын дугаар" name="IsCaseReviewsAddCarForm:stateNumber4" role="textbox" aria-disabled="false" aria-readonly="false" aria-multiline="false"></input>
jQuery(function ($) {
$("#stateNumber4").mask("9999aaa");;
How i call input id for this Jquery.
Thanx all. But still not working. My XHML inputText is here:
<p:inputText id="stateNumber4" type="text" value="#{isCaseReviewsController.current.isReviewsItemsAPK.stateNumber}" title="Улсын дугаар" required="true" requiredMessage="Улсын дугаар оруулна уу"/>
Compile after Inspect element it is:
<input id="IsCaseReviewsAddCarForm:stateNumber4" class="ui-inputfield ui-inputtext ui-widget ui-state-default ui-corner-all" type="text" title="Улсын дугаар" name="IsCaseReviewsAddCarForm:stateNumber4" role="textbox" aria-disabled="false" aria-readonly="false" aria-multiline="false"></input>
Input mask is working another page, but that page haven't form or dialog. My own this page has dialog->form->input. I think main problem is jquery function couldn't call my input id.