Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Utilisation of the # ID selector
19/08/2011
11:42
Avatar
gentletim7
New Member
Members
Forum Posts: 1
Member Since:
19/08/2011
sp_UserOfflineSmall Offline

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/08/2011
21:15
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

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 

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
26 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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information