hi im trying to use jquery to reference the next div of a particular class which is a sibling of my current div
something like
Code:
var parent="AnID"
$("#"+parent).next(".clear").css("height","200px");
above code wont work as the .next() will only reference the immediate neighbour.
ive seen elswhere that something along the lines of this would work but it doesnt seem to.
Code:
var parent="AnID"
$('~ .clear:first', "#"+parent).css("height","200px");
anybody know what im doing wrong here?
thanks for looking
mark m
|