title: jquery masked input on loaded content
body: <p>So I have a joomla! page that is partly generated by functions based on the user. So parts of the forms that I need to use the 'masked input plug-in' on are loaded via functions on page load. The issue I have is, on the fields that are standard HTML on the page, the plugin works fine but on the fields that are generated by my php functions, the fields lock up and don't allow any input. My guess is that it's an issue with the php functions pulling in the forms after the jquery plugin has fired but I tried placing the .mask call in a $(document).ready and no luck.</p>
  
  <p>here's a snippet...</p>
  
  <pre><code>jQuery(function($){
    $("#subNumber").mask("(999) 999-9999");
  $(".numFix").mask("(999) 999-9999");
  });
  </code></pre>
  
  <p>THIS WORKS --></p>
  
  <pre><code>&lt;form name = "subAct" id = "subAct" method="post"&gt;
  &lt;div class="col1"&gt;&lt;input class="subaccountname" name="subName" type="text" id="subName"/&gt;&lt;/div&gt;
  &lt;div class="col2"&gt;&lt;input class="subaccountnumber" name="subNumber" type="text" id = "subNumber"/&gt;&lt;/div&gt;
  &lt;div class="col3"&gt;&lt;a href="javascript:submit()" class="buttonaddsub" id ="addSubBut"&gt;Add a New Account&lt;/a&gt;&lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>THIS ONE DOESN'T -->
  this function --></p>
  
  <pre><code>&lt;?php dashboardFunction::displaySubAccount($uid) ?&gt;
  </code></pre>
  
  <p>loads in this form --></p>
  
  <pre><code>&lt;form name = "add_reg_num_&lt;?php echo $pin ?&gt;" id = "add_reg_num_&lt;?php echo $pin ?&gt;" method="post"&gt;
  &lt;div class="regisnumberadd"&gt;&lt;input name="regNum" type="text" class = "numFix" /&gt;
  &lt;input name="regNumPin" type="hidden" value = "&lt;?php echo $pin ?&gt;"/&gt;
  &lt;/div&gt;
  &lt;div class="clear"&gt;&lt;/div&gt;
  &lt;div class="addregisnum"&gt;&lt;a href="javascript:;" onClick="subRegNum(&lt;?php echo $pin ?&gt;)"&gt;Add Number&lt;/a&gt;&lt;/div&gt;
  &lt;/form&gt;
  </code></pre>