[jQuery] Re: getting the (computed) background-color

2008-02-11 Thread Jake McGraw
Ah, this issue bit me in the ass, using jQuery 1.2.3... is this a browser/css quirk or is there a planned fix? - jake On Jun 17, 2007 7:31 AM, Fil [EMAIL PROTECTED] wrote: I'am not sure, but this one may be faster: // get the background color var current_p = $(this); var bg =

[jQuery] Re: getting the (computed) background-color

2007-06-16 Thread Rick
I'am not sure, but this one may be faster: // get the background color var current_p = $(this); var bg = transparent; while(bg == transparent) { bg = current_p.parent().css('background-color'); current_p = current_p.parent(); } On 16 jun, 23:10, Fil [EMAIL PROTECTED] wrote: To