Matt.
Evidently i have said somehting in a previous post to upset you.
This group is not for taking digs at people
Lose the arrogance and grow up.
I trust this will end any more childishness on your part
Regards
Alex Mcauley
http://www.thevacancymarket.com
- Original Message -
var nextElements=$(element).descendants();// returns everythign that
This would return all children of the element, not siblings.
On Oct 10, 4:26 am, Alex McAuley webmas...@thecarmarketplace.com
wrote:
If you use Event with element you can find the element that was clicked
Hence the note on it This might not work as its divs.
Alex Mcauley
http://www.thevacancymarket.com
- Original Message -
From: Matt Foster mattfoste...@gmail.com
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Monday, October 12, 2009 7:12 PM
Hence the note on it This might not work as its divs.
The name of the elements have no weight on the issue. The structure
of the elements are all that matters.
Siblings != Children
You should have added the disclaimer... This does not work...
On Oct 12, 3:04 pm, Alex McAuley
If you use Event with element you can find the element that was clicked
$$('.blah').each(function(e) {
$(e).observe('click',function(event){
var element=Event.element(event); // this is the element
var nextElements=$(element).descendants();// returns everythign that
is a
});
Well the way I was trying to do it was proving to be too
complicated.. So I changed my html a little bit. Now I am doing:
div class=container
div class=blahsomething/div
/div
div class=container
div class=blahsomething/div
div id=me class=blahsomething/div
div class=blahsomething/div