I'm using the jQuery Masked input plugin.
In this example i'm masking a textbox to social security number format and not allowing all zeros to be entered.
so in this example this is how that is being done:
So this example works just fine.
I'm doing another example that works exactly the same as example 1.
In example 2 though, the mask argument is a variable which I'm filling the value with a for loop.
If my .mask argument is a variable like shown below how would I add the ^ to the variable to it knows not to allow zeros.
I tried this but I know that's not the correct syntax.
Anyone know the correct syntax?
$('#MyTextBox').mask( ^mask.mask); // set textbox mask