Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destroy method is not working #2

Closed
ronanflavio opened this issue Jul 16, 2017 · 1 comment
Closed

Destroy method is not working #2

ronanflavio opened this issue Jul 16, 2017 · 1 comment

Comments

@ronanflavio
Copy link

Hello bro!

First of all I wanna thank your for this code, it's really helping me. =]

The problem is that I have into my project the rule to put every inputs text and textarea to uppercase, except a textarea that has a specific class.

So I made this trying to solve that point:

$(':input[type=text], textarea').caseEnforcer('uppercase');
$('textarea.specificclass').caseEnforcer('destroy');

But the textarea elements with this class still remain uppercased.

Do you know how it could be solved?

Thanks bro!

@ronanflavio
Copy link
Author

Sorry bro, but it was a problem of my lack of knowledge in jQuery lol.

I solved it doing this:

$(':input[type=text], textarea:not(.specificclass)').caseEnforcer('uppercase');

Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants