> $('#mydiv').css('cursor','pointer').click(function(){
> $(this).addClass('selected');
>
> });
>
> No need to select all the contents "manually".
>
> On Feb 20, 5:16 pm, spaceage wrote:
>
> > OK, so you have to inde
$(this).parents("div.clickable_element").toggleClass("selected");
> });
>
> });
> spaceage wrote:
> > A question re: event handling/propagation: I have a surrounding
> > and I want any click within the (including a click on any
> > element within the
A question re: event handling/propagation: I have a surrounding
and I want any click within the (including a click on any
element within the div) to toggle the addition/removal of a class on
the .
In this example, if the user clicks on one of the elements within
the , my toggle doesn't work--
I have a hover script that implements image rollovers that goes like
this:
$(document).ready(function() {
$("img.rollover").hover(function() {
$(this).attr("src", $(this).attr("src").split(".").join("-
hover."));
}, function() {
$(this).attr("src", $(this).attr("src").split("-hover.")
Is there any way to use jQuery to determine which elements/items are visible
within a div that is overflowing?
ie. let's say I have a bunch of elements contained within a , where
the elements are overflowing the . I want to use localScroll to
scroll vertically to a given element, but I'd li
One more thing on this--I was thinking about how to make this code
less "brittle" as far as the handling of the spacing. Since the s
in my list contain browser text, the height/spacing of the can
vary depending on a bunch of factors (ie. font size, line-height,
etc). Is there a way to have each
rnier <[EMAIL PROTECTED]> wrote:
> On 13 Feb, 06:41,spaceage<[EMAIL PROTECTED]> wrote:
>
> > Is this a reasonable undertaking using jQuery, or is there another
> > better way (or plug in) to do this?
>
> jQuery is perfect for this kind of things :)
> just give
I'm trying to create an effect using a within a . I want to
have each slide up individually from (outside) the bottom of the
to the highest available position in the without
overlapping other elements. Its kind of a "scroll/accordian"
effect. At the conclusion of the animation, the would
8 matches
Mail list logo