[jQuery] Re: jQuery selector question - Having ":" in attribute name

2009-01-14 Thread Balazs Endresz
Just investigated it: http://dev.jquery.com/ticket/3729 The colon is valid I think, but it's true, there are some restrictions. On Jan 14, 2:27 pm, naden wrote: > That sucks. jQuery has no problem with $( 'a' ).attr( 'ajax:id' ); > Therefore it would be nice to use it in the selector too. > > t

[jQuery] Re: jQuery selector question - Having ":" in attribute name

2009-01-14 Thread naden
That sucks. jQuery has no problem with $( 'a' ).attr( 'ajax:id' ); Therefore it would be nice to use it in the selector too. thanks anyway have to change it. On 14 Jan., 14:05, "jQuery Lover" wrote: > Slightly :) > > You can not have special character in your html ATTRIBUTES. > > You should ren

[jQuery] Re: jQuery selector question - Having ":" in attribute name

2009-01-14 Thread jQuery Lover
Slightly :) You can not have special character in your html ATTRIBUTES. You should rename "ajax:id" to something else. Ex: ajax_id or ajaxId. - Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Wed, Jan 14, 2009 at 5:16 PM, naden wrote: > > Your right. The docs

[jQuery] Re: jQuery selector question - Having ":" in attribute name

2009-01-14 Thread naden
Your right. The docs said: "Note: if you wish to use any of the meta-characters described above as a literal part of a name, you must escape the character with two backslashes (\). For example: #foo\\:bar #foo\\[bar\\] #foo\\.bar" and so I did. I used \\: to escape the ":" or I'm gettin you wr

[jQuery] Re: jQuery selector question - Having ":" in attribute name

2009-01-14 Thread jQuery Lover
You can not have special character in attribute names. (it's not valid markup) Documentation is saying that your should escape VALUE bit if it contains special characters. - Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Wed, Jan 14, 2009 at 2:11 PM, naden wro