Yeah add the event to the element when it's created.
var item = new Element('li',{
'events':{
'click':function(){
return this.get('rel');
}
}
});
On Nov 22, 9:35 am, אריה גלזר <
arieh.gla...@gmail.com> wrote:
> i am not sure why ou would need a specific number. can't you assign an event
> on item creation:
> var item = new Element('li',{
> 'events':{
> 'click':function(){/*do something*/}}
> });
>
> -----------
> אריה גלזר
> 052-5348-561
> 5561
>