Home > css, javascript > Escape CSS Selector

Escape CSS Selector

March 26th, 2012 Leave a comment Go to comments

Frequently, I am composing css selectors for jQuery dynamicly and need to escape special characters. ¬†Especialy in CakePHP when you are trying to get all inputs with a name like “data[Contact][firstName]”.

Karl Varga has a solution –¬†http://kjvarga.blogspot.com/2009/06/jquery-plugin-to-escape-css-selector.html

Thanks Karl!

Be Sociable, Share!
Categories: css, javascript Tags:
  1. No comments yet.
  1. No trackbacks yet.