On 6/9/08, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: > > -- Vincent <[EMAIL PROTECTED]> wrote > (on Monday, 09 June 2008, 04:10 PM +0200): > > > I want to hide a form element using inline CSS. Now, I can add a style > > attribute to the input element, but is it also possible to manipulate > > attributes in the Label decorator? (Either in the label or the > surrounding dt) > > > You can provide attributes to the Label decorator via the options you > pass to it on creation (or by calling setOption() on the object > instance). However, it is not possible at this time to set attributes on > the tag surrounding it. >
Ah, excellent! It's not documented AFAICS but it's still odd that I missed it while browsing through the source. Thanks! On 6/10/08, AmirBehzad Eslami <[EMAIL PROTECTED]> wrote: > Use Unobtrusive JavaScript.[1] I recommend jQuery.[2] > > [1] http://en.wikipedia.org/wiki/Unobtrusive_JavaScript > [2] http://www.jquery.com/ That wouldn't be appropriate in this case as I want to hide it using purely CSS. -- Vincent
