Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Don't use spaces or brackets, they are not a valid for ID attribute</p> <blockquote> <p>ID tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").</p> </blockquote> <p>and difference between HTML 4.01 and HTML5:</p> <blockquote> <p>The HTML 4.01 spec states that ID tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens (-), underscores (_), colons (:), and periods (.). For the class attribute, there is no such limitation. Classnames can contain any character, and they don’t have to start with a letter to be valid.</p> <p>HTML5 gets rid of the additional restrictions on the id attribute. The only requirements left — apart from being unique in the document — are that the value must contain at least one character (can’t be empty), and that it can’t contain any space characters.</p> </blockquote> <p>But you can try if you have no more choice:</p> <pre><code>$("div[id='Monza ( Italien )5']") </code></pre> <p>Unlike <code>$('#id')</code>, this will return multiple elements if you have multiple elements with the same id within your page</p> <hr> <p>Seem like above selector is not working, you will need manually escape invalid characters here to make it works:</p> <pre><code>$("#Monza\\ \\(\\ Italien\\ \\)5") </code></pre> <p><kbd><a href="http://jsfiddle.net/HLAzd/" rel="nofollow noreferrer"><strong>Working Demo</strong></a></kbd></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload