That's great, thanks Richard. Thanks for the explanation too, really helped
to show me where i was going wrong.
Brian
Richard D. Worth-2 wrote:
>
> This should work:
>
> $("div.togglecontainer div.togglebutton").click(function() {
> $(this).siblings("div.toggletarget").slideToggl
This should work:
$("div.togglecontainer div.togglebutton").click(function() {
$(this).siblings("div.toggletarget").slideToggle();
});
$('div.toggletarget').hide();
A couple of notes:
- I combined your first two selectors into one
- I've used .click(fn) in place of .bind("cli
Thanks for the reply Richard, unfortunately that wasn't the issue. Ive tided
up my example to make it clearer : http://pastie.org/314976
http://pastie.org/314976
So at startup you should see 'Click me' then upon clicking, 'I'm Hidden' &
'Click ME To see more' will be revealed. After clicking '
You may want to start by validating your html. You're missing a closing
, so it's not clear how you intend it to be nested. Once you've
corrected that, let us know if you still have a problem.
- Richard
On Fri, Nov 14, 2008 at 10:26 AM, sinkingfish <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> Im new
4 matches
Mail list logo