Compatibility between MaskedInput and DTEditor?

Compatibility between MaskedInput and DTEditor?

aveakaveak Posts: 15Questions: 0Answers: 0
edited July 2012 in Editor
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)?

Replies

  • aveakaveak Posts: 15Questions: 0Answers: 0
    Once again, I can only find a solution to my problem once I post it. My problem was assigning the mask to the wrong jQuery object. Instead of assigning it to the class listed above, I should assign it to the following:
    [code]$('#DTE_Field_phone').mask("(999) 999-9999");[/code]
  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin
    Heh - that's how it goes :-). Good to hear you got this working!

    Allan
This discussion has been closed.