jQuery MaskedInput plugin + Editor?

jQuery MaskedInput plugin + Editor?

emtemt Posts: 46Questions: 10Answers: 0
edited August 2013 in General
Hey Allan, I'm trying to use the maskedinput plugin on one of Editor's fields (#DTE_Field_phone). For some reason, the mask isn't being applied with this code:

[code]
$('#DTE_Field_phone').mask('(999) 999-9999');
[/code]

I read through this thread (http://datatables.net/forums/discussion/11028/compatibility-between-maskedinput-and-dteditor/p1), used the OP's solution, and it still won't work. Any suggestions?

Replies

  • allanallan Posts: 63,512Questions: 1Answers: 10,472 Site admin
    Are you able to link us to the page so we can take a look and see what is going wrong please?

    Allan
  • emtemt Posts: 46Questions: 10Answers: 0
    http://dcturanoinc.com/blog/contacts/
  • jhcomputejhcompute Posts: 26Questions: 0Answers: 0
    edited August 2013
    emt,

    I just looked at your link above and it is displaying the Phone field in that format. Maybe your browser cache is the problem. Looks nice.

    Cheers
  • emtemt Posts: 46Questions: 10Answers: 0
    Thanks jh, I actually just got it to work. :) This could help someone else with a similar problem in the future:

    [code]
    editor.on('onOpen', function () {
    $('#DTE_Field_phone, #DTE_Field_fax').mask('(999) 999-9999');
    });
    [/code]
This discussion has been closed.