Dear JqxWidget Heroes,
I would like to remove the mask of an input on some conditions.
By default, the Dutch zipcode mask is added on the input. But on an event(other country selected), i would like to remove/clear/destroy/unmask the mask on the input.
if (countryId == 139) {
$(that.CustomerFormSelector + ' [id="ZipCode"]').jqxMaskedInput({ mask: '#### [A-Z][A-Z]' });
} else {
$(that.CustomerFormSelector + ' [id="ZipCode"]').jqxMaskedInput({ mask: null }); // Remove/unmask jqxMask somehow??
}
The .jqxMaskedInput('destroy');
destroys the whole input, but i just want to clear the mask, not the input itself.
Maybe the solution is very simple, but i don’t see it…Any ideas?
Thanks in advance!