Forum
11:42
19/08/2011
Hi Tony and thank you for great job.
But I have a little question for you. Why don’t you use the $("[id='myid']") instead the $("#myid") ?
Because when you use the #, jquery don’t allow special characters. But when you use [id='myid'] you can use any type of IDs. For me it’s more reliable.
For example you can do: $("[id='my@special|ID#35']"). This is impossible whith the # ID selector.
Thank you in advance for your help!
21:15
10/08/2009
jQuery do allows to use meta-characters (special characters) in the id. One needs just excape the meta-characters. See here for details. To be able to use meta-characters inside of ids in the code of jqGrid are used the method $.jgrid.jqID. So instead of the usage code like $("#cb_"+t.p.id) in the jqGrid code will be allways used $("#cb_"+$.jgrid.jqID(t.p.id)).
Best regards
Oleg
Most Users Ever Online: 715
Currently Online:
56 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66