Posted on 2011-02-14
I have a page with a bunch of fields. I want to put a little edit button next to them. There will probably be a dozen or so. However, I don't want them there the entire time. I would like some sort of "Toggle Edit" button that would show/hide all the individual edit buttons. I've found some js to modify the style of an individual element using "GetElementByID" or "GetElementsByName" or whatever, but what I actually want to do is change the STYLE. For instance, I might have 15 divs with a class of "Edit" applied and Display: none. When someone clicks "Toggle Edit" I want to change "Edit" to Display: inline.