[EMAIL PROTECTED] wrote: > Not necessarily... You don't have to get them by ID. You can get them > by tagname or, with a simple helper, class name. > Or group them, then cycle through... something like > var controls = > document.getElementById("controls").getElementsByTagName("a") > for(var i=0;i<controls.length;i++){ > controls[i].onclick ... > > etc. > > Onclick you could get the id or href or whatever you need from that > particular link. > > It's 2007. There's better ways of doing these things than littering > your html with event handlers. > Have a look at JQuery/DOMQuery/Behaviour.js for class-based event handling.
Rob :) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---