Compatibility between MaskedInput and DTEditor?
Compatibility between MaskedInput and DTEditor?
I've been using jquery.maskedInput.min.js (http://digitalbush.com/projects/masked-input-plugin/) for some time now, and I'd like to apply it to the value of a field in the Editor lightbox.
So, for example, in the event onOpen, I'd like to say this:
[code]$('.DTE_Field_Name_phone').mask("(999) 999-9999");[/code]
However, when I do this, all input is blocked. Are there other keypress events blocking this plugin within Editor? If this isn't the best plugin to use in this situation, what would be the preferred method for forcing a user to input in a specific format (outside of validation -- the client is specifically asking for a mask on this project)?
So, for example, in the event onOpen, I'd like to say this:
[code]$('.DTE_Field_Name_phone').mask("(999) 999-9999");[/code]
However, when I do this, all input is blocked. Are there other keypress events blocking this plugin within Editor? If this isn't the best plugin to use in this situation, what would be the preferred method for forcing a user to input in a specific format (outside of validation -- the client is specifically asking for a mask on this project)?
This discussion has been closed.
Replies
[code]$('#DTE_Field_phone').mask("(999) 999-9999");[/code]
Allan