Skip to content

Escapes special characters for jQuery selector #457

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

Closed
wants to merge 2 commits into from

Conversation

tedliang
Copy link

Escapes special characters for jQuery selector.
http://totaldev.com/content/escaping-characters-get-valid-jquery-id

@posabsolute
Copy link
Owner

Hi,

sorry to be late, in what way did you need this? some bad behaving .net?
Just want to be sure this has a valid use case

Thank you for your contribution!

@tedliang
Copy link
Author

tedliang commented Sep 2, 2012

If prettySelect mode is used and the field id contains special characters (eg. id="id.with,special#characters"), the first_err field selector will be broken. It's mainly for better collaboration with pretty select libraries such as Chosen and Select2.

https://github.com/posabsolute/jQuery-Validation-Engine/blob/master/demos/demoChosenLibrary.html

@posabsolute
Copy link
Owner

cool, will merge it

posabsolute pushed a commit that referenced this pull request Sep 10, 2012
@posabsolute
Copy link
Owner

sorry had to merge manually, it was using an old version (my faukt) and it was easier to do by hand than try to fix the conflict, I added your name in the commit

@tedliang
Copy link
Author

No worries. Thanks for accepting my patch. Cheers.

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

Successfully merging this pull request may close these issues.

2 participants