Learn suggestion: Select by ID with escaped characters

Learn suggestion: Select by ID with escaped characters

Hi!

The page How do I select an element by an ID that has characters used in CSS notation? could also mention a simple solution that is also faster:

  1.    
    // Does not work:
    $( "#some:id" )
  2. // solution with no string replacement:
  3. $( document.getElementById("some:id"))