code: public static String escapeJQuerySpecialCharsInSelector(String selector) {
  		String jQuerySpecialChars = "!\"#$%&'()*+,./:;<=>?@[]^`{|}~;";
  		String[] jsc = jQuerySpecialChars.split("(?!^)");
  		for(String c: jsc) {
  			selector = selector.replace(c, "\\\\" + c);
  		}
  		return selector;
  	}
docs: Escape special jQuery chars in selector query
  @param selector
  @return