I've got a table an input box that has a money input mask on it. I haven't had any problems with it yet, but now it doesn't seem to be working properly and I can't get anything to alert from it.
All of this is an internet explorer problem. Works fine in FireFox.
In firefox the mask works right as it only allows numbers and at a fixed format, but in ie, the format, or mask, is shown correctly when you're on focus, but as once you begin typing, the characters are being appended, rather than in place of the mask. It also is allowing non numeric characters. I've tried alerting in IE, but that also is not working. I can't find anything on this issue through google..
You'll have a better understanding of what it's doing if you check in firefox and then IE. It's the less advance cell at the bottom. or just append #less to the url.
I'll provide any code relevant to this..Though, I'm not getting any errors.
Code:
<td class="totals<cfif r EQ 1>1</cfif>"><cfif r EQ 1>Total<cfelse><input type="text" <cfif labels[r] EQ "Less Advance(if applicable)">id="less"</cfif><cfif labels[r] EQ "Net Due Employee">id="net"</cfif>id="totals" class="ttlR#r# total<cfif labels[r] EQ "Grand Total"> grandTot</cfif>" name="totals#r#" readonly="readonly" /></cfif></td>
$('#less').removeAttr("readonly").css("background-color", "none").css("text-align", "right").maskMoney({symbol: ""});
$('#less').keyup(function(){
$('#net').val(Number($('.grandTot').val() - $('#less').val()).toFixed(2));
alert($('#less').val());
});
//Get value of net total if page is refreshed.//
if($('#less').val() != "" || $('#less').val() != " "){
$('#net').val(Number($('.grandTot').val() - $('#less').val()).toFixed(2));
}