title: Using maskMoney input plugin -- still need some assistance
body: <p>Ok, considering the regular expressions aren't working properly and there are no errors, I'm going to try and use the money mask. </p>
  
  <p>The goal is still to only allow numeric characters and a decimal. With maskMoney, that does the work for you.</p>
  
  <p>Also, I need to be able to successfully calculate each cell. </p>
  
  <p>As of right now, the masks are working good, but I'm no longer able to calculate. This is where I'm troubled. </p>
  
  <p><strong>JQuery and JavaScript code:</strong></p>
  
  <hr>
  
  <pre><code>&lt;script type="text/javascript" language="javascript"&gt;
      $(document).ready(function(){
       $('.date').mask("99/99/9999");
       $('.account').mask("99-9-999999-9999");
       /*calcuating the vertical and horizontal inputs*/
  
       $('.R26').attr("disabled", "disabled");
  
   $('.calc').maskMoney({symbol: ""});
   $('.R25').unmaskMoney();
   $('.R18').unmaskMoney();
  
   $('input.description').focus(function(){
    if($(this).val()=="Enter text here"){
     $(this).val(" ");
    }
  
    else{
     $(this).val($(this).val());
    }
   });
   $('input.description').blur(function(){
    if($(this).val()==" "){
     $(this).val("Enter text here");
    }    
   });
  
  $('.calc').keyup(function(){
   var classArray = $(this).attr('class').split(' ');
   //Personal gas expense
   $('.gasamount').sum("change", "#totals4");
   var num = $(this).attr("id").replace(/[A-Za-z$,-]/g, "");
   $('#gasmoney'+num).val(&lt;cfoutput&gt;#mileage#&lt;/cfoutput&gt; * $(this).val());
   $('.gasmoney').sum("change", "#totals5");
   //////////////////////
  
   //Sum of each cell
   $.each(classArray, function(){
    $('.'+this).sum("change", ".ttl"+this);
   });
   //Finding the grandtotal
   var grandTotal = $('.row26').parent().children('td:last').children('input');
   var sum = $('.row25').parent().children('td').children('.calc').sum();
   grandTotal.val(Number(sum).toFixed(2));
  });
  </code></pre>
  
  <p><strong>ColdFusion and HTML code:</strong></p>
  
  <p>
     
      #labels[r]#   </p>
  
  <pre><code>&lt;cfloop from="1" to="7" index="i"&gt;
  
   &lt;td id="Day#i#" class="row#r# col#i#"&gt;
    &lt;cfif r EQ 1&gt;#Left(DayOfWeekAsString(i),3)#&lt;cfelse&gt;&lt;cfif r EQ 2&gt;
    &lt;input type="text" class="date-mask" /&gt;&lt;cfelse&gt;
    &lt;input type="text" 
    &lt;cfif labels[r] EQ "Personal Car: Mileage ##"&gt; id="gasamount#i#" &lt;cfelseif labels[r] EQ "Personal Car: Mileage $"&gt;id="gasmoney#i#" &lt;/cfif&gt;&lt;cfif labels[r] EQ "Daily Totals"&gt;id="dailytotals#i#"&lt;/cfif&gt;
     class="&lt;cfif labels[r] EQ "Personal Car: Mileage ##"&gt;gasamount&lt;cfelse&gt;&lt;cfif labels[r] NEQ "Daily Totals"&gt;C#i#&lt;/cfif&gt;&lt;/cfif&gt;
     &lt;cfif labels[r] EQ "Personal Car: Mileage $"&gt;gasmoney&lt;cfelse&gt;calc R#r#&lt;/cfif&gt;
     &lt;cfif labels[r] EQ "Daily Totals"&gt;ttlC#i#&lt;/cfif&gt;"
      &lt;cfif labels[r] EQ "Daily Totals" OR labels[r] EQ "Personal Car: Mileage $"&gt;readonly="readonly"&lt;/cfif&gt;
       /&gt;&lt;/cfif&gt;
       &lt;/cfif&gt;
   &lt;/td&gt;
  
  
  &lt;/cfloop&gt;
  
   &lt;td class="totals"&gt;&lt;cfif r EQ 1&gt;Total&lt;cfelse&gt;&lt;input type="text" id="totals" class="ttlR#r#" readonly="readonly" /&gt;&lt;/cfif&gt;&lt;/td&gt;
  </code></pre>
  
  <p>
     </p>
  
  <p>I've had similar questions with the same application, but this is in fact not a duplicate(in case you think it is.).</p>
  
  <p>The '.'+this is an object created by the array. I used cfloops to create a large table, and added multiple classes. Had to break up the multiple classes into an array, and then was able to select each class as its own. </p>