hi, im quite new to jquery and am becoming ever more impressed by its
power, alas ive no idea how to harness this power yet so please help.

i have dynamicly loading pages with up to 4 floated columns in each,
the height of these floated columns varies, and what im doing is
adding a div with class .cleverBox below the last element in each
floated div. on page load i then call a function which loops through
each .cleverBox and stretches its height so that the bottom of it sits
parallel to the bottom of the tallest div in the line of floats.

to acertain where i need to strecth my .cleverBoxes to, i have a div
with a class of .clear. my clear div simply clears the floats, and i
can tell by looking at the pos.top attribute of this div and comparing
it with the pos.top of my .cleverBox divs, how tall each .cleverBox
should be.

So far this sounds easy, i can hear you saying that surely the . clear
is unecessary as there is only one of them and i should just give it
an id. i cant do this because i want to apply this function inside
elements of my floating divs also.

SO, WHAT IM TRYING TO FIGURE OUT IS HOW DO I REFERENCE THE NEXT
ELEMENT WITH CLASS OF .CLEAR FROM MY PARENT ELEMENT -

this gives me the id of the next element with respect to parent (for
trial and error purposes, ive given all of my .cleared class divs an
id, ids will be removed)

var parentId="dynamic";
$("#"+parentId).next().get(0).id

so i thought i would need something along the lines of this but it
doesnt work -

var parentId="dynamic";
$("#"+parentId).next(".clear").get(0).id

im sure this is a simple issue of syntax, but im not fluent enough in
jquery yet and cant figure it out

Reply via email to