Change History (5)

You can traverse the DOM in javascript and locate items that do not have ids relative to ones that do (or within containers external to this rendering that have classes or ids specified). So I think the statement that you cannot access certain parts of this rendering in javascript is not true, therefore I don't see the need to add all these ids in the rendering.

I'm not sure what you are asking to be shown how to do so I'm at a loss to give you an example of how to do it. I suggest you ask a specific question for what you'd like to do on someplace like django-users or #django IRC. Neither CSS selectors nor javascript require that each and every element in the DOM have an id attached to it in order to apply styles or manipulate the elements with javascript. (And I rather suspect the suggested change creates invalid HTML by duplicating the same id values on multiple elements, though I have not confirmed that.)

Please do not respond here with more specifics of what it is you'd like an example of. Trac is not the place for user support, which is what this is veering towards. There are many more productive places to ask for help with how to do things in Django. I'm very sure whatever it is you are trying to do is possible without adding ids to all the HTML elements generated by forms when output as tables.