jQuery selector with ids and comma

后端 未结 4 1120
臣服心动
臣服心动 2021-01-12 19:08

I am using MyTableGrid to show an Excel like control in my webpage.

The cells are referenced with ids like \"mtgIC1_0,2\" for table 1, column 0, row 2.

Unfor

4条回答
  •  执笔经年
    2021-01-12 19:52

    From here http://api.jquery.com/category/selectors/

    "If you wish to use any of the meta-characters (#;&,.+*~':"!^$[]()=>|/ ) as a literal part of a name, you must escape the character with two backslashes: \\. For example, if you have an an input with name="names[]", you can use the selector $("input[name=names\\[\\]]")."

提交回复
热议问题