Bug Tracker

Changes between Initial Version and Version 1 of Ticket #1972


Ignore:
Timestamp:
Nov 27, 2007, 10:44:52 AM (15 years ago)
Author:
davidserduke
Comment:

That is because those are reserved characters for the jQuery system. To use them you have to escape them with backslashes. Read here for more.

http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element_that_has_weird_characters_in_its_ID.3F

See the example in the wiki also.

http://docs.jquery.com/Selectors/id

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1972

    • Property Status changed from new to closed
    • Property Resolution changed from to worksforme
  • Ticket #1972 – Description

    initial v1  
     1{{{
    12I can not catch element if there is "[", "]" symbols in id. example: alert($jq('#i[4]').attr('id'));
    23
    34but I can catch such elements by getElementById function.
     5}}}