fixed it, just had to add return false; to the click function.
On May 12, 3:19 pm, thekman <[EMAIL PROTECTED]> wrote:
> Hi & thanks again for your help Dave.
> Do you know of a better way to do this bit?
>
> div>Reviews
>
> i am using the href as i want to use a hover image, but if it is far
> d
Hi & thanks again for your help Dave.
Do you know of a better way to do this bit?
Reviews
i am using the href as i want to use a hover image, but if it is far
down the page & a user clicks on it to show/hide the content, the
browser scrolls back to the top of the page.
any ideas?
On May 12, 1:
Thanks a million Dave,
both examples work a treat...
I just had to remove the extra . after $this in (example 1)
and in example 2, remove the extra . between addClass(togv[1]).
.parents(
and change my layout code to rather than
it now works as expected...
so thanks again...
Ah, I think I see it, but I should have seen it earlier.
I'm going to assume your two .click() methods are inside a .ready()
handler or other block that doesn't execute until the markup is there.
Remember that the .click() method sets an event handler for the
elements matching the selector **at
Hi Dave,
Below is the code...
$('.min').click(function() {
$
(this).removeClass("min").addClass("max").parents(".Container").children(".Content").hide();
$.cookie($(this).parents(".Container").attr("id"), 'closed',
{ expires: 7 });
});
$('.max').click(function() {
$
(this).removeClass("max").ad
> i am using the code below to hide some content, the first part works
> ok & hides the content as expected but i cant get the second part to
> work - i.e. showing the content again - any ideas?
Can you show a sample of the markup, or better yet link to a test page?
6 matches
Mail list logo