Skip to content
This repository was archived by the owner on Dec 11, 2017. It is now read-only.

Triggering unmasked.maskedInput event on blur#52

Closed
nathanl wants to merge 2 commits intodigitalBush:masterfrom
nathanl:master
Closed

Triggering unmasked.maskedInput event on blur#52
nathanl wants to merge 2 commits intodigitalBush:masterfrom
nathanl:master

Conversation

@nathanl
Copy link

@nathanl nathanl commented Sep 7, 2011

Trigger event when maskedInput has removed its placeholder characters. This can be useful if other validation is checking whether the field is blank.

For example, if using jQuery Validate:

$('input').bind('unmasked.maskedInput',function(){$(this).valid();});

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this line supposed to be inside the if block? It is formatted to look that way but there are no braces.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, indeed. Thanks for noticing that.

@digitalBush
Copy link
Owner

You're only triggering this custom event in the same scenario as we trigger the change event. Why wouldn't you just listen to change?

@FagnerMartinsBrack
Copy link
Contributor

Now I saw what I anwered, what I meant actually was:

if you bind the CHANGE event, since the line above is already triggering it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants