jQuery.escapeSelector( selector )Возвращает: Selector

Описание: Escapes any character that has a special meaning in a CSS selector.

This method is useful for situations where a class name or an ID contains characters that have a special meaning in CSS, such as the dot or the semicolon.

The method is essentially a shim for the CSS Working Group's CSS.escape() method. The main difference is that $.escapeSelector() can be reliably used in all of jQuery's supported browsers.

Примеры использования