Re: [jQuery] How would I change this?

2007-02-18 Thread Joan Piedra

If the div.time is inside the title you could try > in your object.

.click(function() {
 $(this).find('> div.time').next().slideToggle();
});



On 2/18/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:


Oops!  Sorry! (Getting a little sleepy!)

Here's the code I'm using:

$(document).ready(function() {

$('.calendar').find('div.info').hide().end().find('div.title').click(function()
{
 $('div.time').next().slideToggle();
 });
});



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of 
Sent: Sunday, February 18, 2007 9:48 PM
To: jQuery Discussion.
Subject: Re: [jQuery] How would I change this?

Rick,
You posted no html or jquery code!

in general the clickable tag has to know which details it is supposed to
show.

you can find it in several ways,
1) a similar, and derivable id control-one would show detail-one
2) proximity, where you can just show the next div or a class.
3) consistent class names ,class="one" would show the divs with
class="one"
4) linking an 

What do you need?

On 2/18/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
>
>
>
> How would I change this code so that only the
>
> details immediately after the line that is clicked
>
> toggles, instead of the details after every line?
>
> i.e….
>
> Line one has:
>
> Event   DateTime
>
> Line two (which is hidden until the event is clicked) has:
>
> Details
>
> Once the Event is clicked the Details slide smoothly open.
>
> But right now, the details for every event are opening.
>
> Rick
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>


--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
Joan Piedra || Frontend webdeveloper
http://joanpiedra.com/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] How would I change this?

2007-02-18 Thread Rick Faircloth
Oops!  Sorry! (Getting a little sleepy!)

Here's the code I'm using:

$(document).ready(function() {

$('.calendar').find('div.info').hide().end().find('div.title').click(function() 
{
 $('div.time').next().slideToggle();
 });
});



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 
Sent: Sunday, February 18, 2007 9:48 PM
To: jQuery Discussion.
Subject: Re: [jQuery] How would I change this?

Rick,
You posted no html or jquery code!

in general the clickable tag has to know which details it is supposed to show.

you can find it in several ways,
1) a similar, and derivable id control-one would show detail-one
2) proximity, where you can just show the next div or a class.
3) consistent class names ,class="one" would show the divs with class="one"
4) linking an 

What do you need?

On 2/18/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
>
>
>
> How would I change this code so that only the
>
> details immediately after the line that is clicked
>
> toggles, instead of the details after every line?
>
> i.e….
>
> Line one has:
>
> Event   DateTime
>
> Line two (which is hidden until the event is clicked) has:
>
> Details
>
> Once the Event is clicked the Details slide smoothly open.
>
> But right now, the details for every event are opening.
>
> Rick
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>


-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] How would I change this?

2007-02-18 Thread Ⓙⓐⓚⓔ
Rick,
You posted no html or jquery code!

in general the clickable tag has to know which details it is supposed to show.

you can find it in several ways,
1) a similar, and derivable id control-one would show detail-one
2) proximity, where you can just show the next div or a class.
3) consistent class names ,class="one" would show the divs with class="one"
4) linking an 

What do you need?

On 2/18/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
>
>
>
> How would I change this code so that only the
>
> details immediately after the line that is clicked
>
> toggles, instead of the details after every line?
>
> i.e….
>
> Line one has:
>
> Event   DateTime
>
> Line two (which is hidden until the event is clicked) has:
>
> Details
>
> Once the Event is clicked the Details slide smoothly open.
>
> But right now, the details for every event are opening.
>
> Rick
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>


-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] How would I change this?

2007-02-18 Thread Rick Faircloth
How would I change this code so that only the
details immediately after the line that is clicked
toggles, instead of the details after every line?

i.e..

Line one has:

Event   DateTime

Line two (which is hidden until the event is clicked) has:

Details

Once the Event is clicked the Details slide smoothly open.
But right now, the details for every event are opening.

Rick
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/