Примеры для jQuery.escapeSelector()


Escape an ID containing a hash.

1
$.escapeSelector( "#target" ); // "\#target"

Select all the elements having a class name of .box inside a div.

1
$( "div" ).find( "." + $.escapeSelector( ".box" ) );