hello!
 
i guess i'm not too good in finding my way upwards in the DOM tree.
 
I have a structure like this:
 
dl#navigation 
dl#navigation > dt 
dl#navigation > dd > ul > li > a.selected
 
dl#navigation > dt 
dl#navigation > dd > ul > li > a 
 
dl#navigation > dt 
dl#navigation > dd > ul > li > a
 
/dl
 
all  ul are hidden but the one containing the selected a. I need to access that 
specific dt element.
 
i tried this, but it does not work:
 
$this = $("//dd[ul/li/a.selected]");
$this.show();
$this = $(this).parent();
$("dt",$this).css({border: "1px solid #FF0000"});
 
 
sorry, i think i  'm in need of a good tutorial on selectors.
 
thank you for your help,
 
Alexandre
 
 
 


-- 
Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.448 / Base de données virus: 268.18.20/737 - Date: 28/03/2007 16:23
 
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to