Reply
jquery to find next div of a particular class
Old 10-08-2009, 12:05 PM jquery to find next div of a particular class
hiptobesquare's Avatar
Extreme Talker

Posts: 182
Location: London UK
Trades: 0
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
hiptobesquare is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Reply     « Reply to jquery to find next div of a particular class
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.09294 seconds with 13 queries