So I have joomla! which is partially created by user-based functions. Thus, the parts of the forms that I need to use the "hidden input plug-in" are loaded through the page load functions. The problem is that in fields that are standard HTML on the page, the plugin works fine, but in fields that are generated by my php functions, the fields are blocked and do not allow input. I suppose the problem is that php functions are pulling forms after the jquery plugin is running, but I tried putting the .mask call in $ (document) .ready and no luck.
here is a fragment ...
jQuery(function($){ $("#subNumber").mask("(999) 999-9999"); $(".numFix").mask("(999) 999-9999"); });
THIS WORK β
<form name = "subAct" id = "subAct" method="post"> <div class="col1"><input class="subaccountname" name="subName" type="text" id="subName"/></div> <div class="col2"><input class="subaccountnumber" name="subNumber" type="text" id = "subNumber"/></div> <div class="col3"><a href="javascript:submit()" class="buttonaddsub" id ="addSubBut">Add a New Account</a></div> </form>
THIS DOES NOT GIVE β this function β
<?php dashboardFunction::displaySubAccount($uid) ?>
loaded in this form β
<form name = "add_reg_num_<?php echo $pin ?>" id = "add_reg_num_<?php echo $pin ?>" method="post"> <div class="regisnumberadd"><input name="regNum" type="text" class = "numFix" /> <input name="regNumPin" type="hidden" value = "<?php echo $pin ?>"/> </div> <div class="clear"></div> <div class="addregisnum"><a href="javascript:;" onClick="subRegNum(<?php echo $pin ?>)">Add Number</a></div> </form>
source share