Hi Guys,
Just trying to establish whether prototype can do something like
$$('#ID a:last').css('color','#111');
Any ideas ?
Hi Guys,
Just trying to establish whether prototype can do something like
$$('#ID a:last').css('color','#111');
Any ideas ?
The syntax is:
$$('#ID a:last')[0].setStyle('color','#111');
(In prototype $$ returns an array - so if you know there is just one, take the first)
hope this helps