Thanks, I had started (and still am) working along the lines of
getParent() but hadn't quite got there yet :)

"By the way the html is invalid "
Opps, I missed out the opening and closing <dl> tags in the mooshell
snippet (case of trimming it too much), but having nested <dl>s is ok
as far as I know.

Thanks again.

On 11 nov, 00:14, "Steve Onnis" <[email protected]> wrote:
> Give this a go
>
> http://mooshell.net/zLMKR/2
>
> By the way the html is invalid
>
> Its..
>
> <dl>
>         <dt></dt>
>         <dd></dd>
> </dl>
>
> http://www.w3schools.com/TAGS/tag_dl.asp
>
> -----Original Message-----
> From: cbolson [mailto:[email protected]]
> Sent: Wednesday, 11 November 2009 9:27 AM
> To: MooTools Users
> Subject: [Moo] select previous element in the document
>
> Is there any method for selecting the previous element in the page to
> the one that has been clicked?
>
> I thought that getPrevious() would do it but it actually only works on
> previous siblings (as per the docs).
>
> To make my question clearer I have set up a very simple example in
> mooshell:http://mooshell.net/zLMKR/
>
> Hopefully from that example you can see what I am trying to do.
>
> Thanks in advance for any help :)
>
> Chris

Reply via email to