Since there is no simple relation to use, you can do this

find all the p|img tags and loop thru them. when you have found 'this' img,
the last p found in the loop is the one you want.


On 12/11/06, Anaurag Gupta <[EMAIL PROTECTED]> wrote:

> Felix Geisendörfer
>
> How about:
> $("#yourimage").prev("p:last");

Nope. Again, am trying to find the first occurance of P, working backwards
from the Img.

<body>
<p>don't find me</p>
<table><tr><td><p>don't find me</p></td><td><p>Find
Me!</p></td></tr></table>
<img id="yourimage" src="#" />
<p>don't find me</p>
</body>

Thanks in advance to all who might be able to help.

Anurag

------------------------------
Have a burning question? Go to Yahoo! 
Answers<http://answers.yahoo.com/;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx>and
 get answers from real people who know.

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/





--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to