Marc Jansen schrieb:
#item.x { background-color: red; }
this select and make red this:
div id=item class=x/div
--
Viele Grüße, Olaf
---
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
---
Right. In a CSS file you escape the . with a \.
So to reference:
div id=item.x/div
You would write:
#item\.x { background-color: red; }
Karl Rudd
On 3/22/07, Olaf Bosch [EMAIL PROTECTED] wrote:
Marc Jansen schrieb:
#item.x { background-color: red; }
this select and
Hello,
I did a test case to show what is my problem:
http://dpaste.com/7204/
I'm trying to use JQuery to get some elements with ids that contains
'.' and ':', but that arent working, and with getElementById that's
working.
Am I missing something?
Thanks in advance,
-Adriano
Hi Adriano,
This is very, very interesting! At first sight (and with
http://www.w3.org/TR/html401/types.html#type-id in mind) this seems to
be a bug. List: Correct me, if I'm wrong?
But: Even pure CSS-selectors seem to fail on your test-suite, though:
For example, add this to head of your
This was discussed a week or two ago. There's a ticket open on it with
at patch to fix it.
http://dev.jquery.com/ticket/143
Basically it means that if you want to select #item:x you have to
construct the selector like this:
$( #item\\:x )
The double slashes are there because \: in a
I just tried:
$( '#item\.x' )
$( '#item\:x')
$( #item\\:x )
and I always get an Object, but calling, for example, html(), always
returns null.
Thanks.
On 3/21/07, Karl Rudd [EMAIL PROTECTED] wrote:
This was discussed a week or two ago. There's a ticket open on it with
at patch to fix