posted 17 years ago
Remember that JavaScript always acts upon the rendered html sent back to the browser after all variables have been resolved and all custom tags processed. That means you're dealing with a plain HTML <input type="checkbox" > control. The Struts tag attribute property translates to the HTML attribute name. Also, the Struts attribute styleId translates to the HTML attribute id. Therefore, with a tag like this:
you can use the following JavaScript code: