Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



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: 186
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
 
 
Register now for full access!
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.10471 seconds with 12 queries