Why Do I Have A Javascript Parser Error With This Mask Code?
I have a JavaScript parser plug-in in Visual Studios 2012 and it is throwing an error at line 30 of this code, which is the closing curly brace for the $.mask piece from Mr. Bush:
Solution 1:
Maybe because of the additional comma after the placeholder: ...
line?
Solution 2:
It looks like you've got an extra comma in there
$.mask = {
//Predefined character definitionsdefinitions: {
'9': "[0-9]",
'a': "[A-Za-z]",
'*': "[A-Za-z0-9]"
},
dataName: "rawMaskFn",
placeholder: '_'
};
Post a Comment for "Why Do I Have A Javascript Parser Error With This Mask Code?"