Here's a gues...
document.getElementById('Connections').getProps().className
If you have dojo to work with....
dojo.byId('Connections').getProps().className
On Wed, Mar 26, 2008 at 10:57 AM, Anissa Lam <Anissa.Lam_at_sun.com> wrote:
>
> Hi,
> We moved to woodstock 4.2 recently from 4.0.2, and I cannot retrieve the
> styleClass the same way as in 4.0.2.
> In 4.0.2, i can do
> styleClass = component.className;
>
> Can someone tell me how i can retrieve the styleClass in JS after i get
> hold of this component ?
>
> <webuijsf:textField id="Connections" styleClass="integer"
> text="#{connections}" />
>
> thanks
> Anissa.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_woodstock.dev.java.net
> For additional commands, e-mail: dev-help_at_woodstock.dev.java.net
>
>