[jQuery] Re: select only the father

2009-04-22 Thread gostbuster
thanks a lot again. On 22 avr, 13:47, Daniel wrote: > I'm very glad! > > On Apr 22, 6:38 am, gostbuster wrote: > > > Thank you very much! it works ! > > > thanks a lot ! > > > On 22 avr, 13:31, Daniel wrote: > > > > try this... > > > >                 $(".delete").hover(function(){ > > >    

[jQuery] Re: select only the father

2009-04-22 Thread Daniel
I'm very glad! On Apr 22, 6:38 am, gostbuster wrote: > Thank you very much! it works ! > > thanks a lot ! > > On 22 avr, 13:31, Daniel wrote: > > > try this... > > >                 $(".delete").hover(function(){ > >                         $(this).parent().css('background- > > color','red'); >

[jQuery] Re: select only the father

2009-04-22 Thread gostbuster
Thank you very much! it works ! thanks a lot ! On 22 avr, 13:31, Daniel wrote: > try this... > >                 $(".delete").hover(function(){ >                         $(this).parent().css('background- > color','red'); >                 }, function() { >                         $(this).paren

[jQuery] Re: select only the father

2009-04-22 Thread Zeeshan Khan
Daniel's Suggestion is simple & i think it might work for u. On Wed, Apr 22, 2009 at 4:31 PM, Daniel wrote: > > try this... > >$(".delete").hover(function(){ >$(this).parent().css('background- > color','red'); >}, function() { >

[jQuery] Re: select only the father

2009-04-22 Thread Zeeshan Khan
class "container" contains the CSS code right?if u assign ID to all of your parent div it'll be very helpful for u in this case & also in many other scenarios or you can create CSS design on the basis of IDs. On Wed, Apr 22, 2009 at 4:25 PM, gostbuster wrote: > > Hi, thank you for you answser. >

[jQuery] Re: select only the father

2009-04-22 Thread Daniel
try this... $(".delete").hover(function(){ $(this).parent().css('background- color','red'); }, function() { $(this).parent().css('background- color','white'); }); On Apr 22, 6:25 am, gostbuster wrote

[jQuery] Re: select only the father

2009-04-22 Thread gostbuster
Hi, thank you for you answser. Of course I could do that, expect that I'll have an undefined number of "container" div. That's why I gave them classes and no id ! Thank you On 22 avr, 13:17, Zeeshan Khan wrote: > Instead of call the parent you can call Only that DIV of which u want to > chang

[jQuery] Re: select only the father

2009-04-22 Thread Zeeshan Khan
Instead of call the parent you can call Only that DIV of which u want to change the background color $(document).ready(function(){ //action when the mouse is over : $("#delete").mouseover(function(){ // I select the .delete divs. //now i want to