Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ![]() Interested in joining? Click here. If you are already a member of ZBCode, feel free to login right here: |
| [ZB] I've never thought about it before... | |
|---|---|
| Tweet Topic Started: Apr 11 2009, 12:31 PM (169 Views) | |
| Reid | Apr 11 2009, 12:31 PM Post #1 |
![]()
What? The land of the free? Whoever told you that was your enemy.
![]()
|
But, let's say you have some random variable as a signature, the td element that is. Now you want to find the post directly above it. How do you do it? Lol. I know it sounds very simple but every way eludes me somehow. The post right above it.. should be easy, right? So, the given variable is x, the signature's td ( $("td.c_sig") that is, with x being this) ... /facepalm
|
| The Resource Board | |
![]() |
|
| Chris | Apr 11 2009, 10:44 PM Post #2 |
![]()
|
$(this).parent().parent().children("tr:eq(2)").children(".c_post").html() Why can't you just use $("td.c_post") in the first place? Unless you have it look for a specific signature, in which case I have no idea as to what you are trying to do. Edited by Chris, Apr 11 2009, 10:47 PM.
|
![]() |
|
| Reid | Apr 11 2009, 11:21 PM Post #3 |
![]()
What? The land of the free? Whoever told you that was your enemy.
![]()
|
Store data in a signature and wrap it around a specific post.
|
| The Resource Board | |
![]() |
|
| Reid | Apr 12 2009, 12:01 AM Post #4 |
![]()
What? The land of the free? Whoever told you that was your enemy.
![]()
|
edit: nevermind, got it!
Edited by Reid, Apr 12 2009, 12:14 AM.
|
| The Resource Board | |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Code University · Next Topic » |















7:48 PM Jul 10