Yii Framework Forum: [SOLVED] Unmasking a CMaskedTextField - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[SOLVED] Unmasking a CMaskedTextField Rate Topic: -----

#1 User is offline   Rodrigo 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 29-May 10

Posted 01 October 2010 - 08:44 PM

Hi,

How do I unmask a CMaskedTextField?

jQuery Masked Input Plugin has a unmask() function, but I don't know how to call it.

Thanks,
Rodrigo
0

#2 User is offline   Rodrigo 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 29-May 10

Posted 25 October 2010 - 12:32 PM

To unmask a field before submit I did the following (unmask() doesn't work)

$("#form-name").submit(function() {
$("#masked-field").unmask();
$("#masked-field").mask("99999999999");
return true;
});

$("#masked-field").mask("999.999.999-99");
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users