Change CSS class attribute value at runtime
Hi,
Can anyone help me to change the value of a class at runtime. So, for
example, I have a css class that I apply to certain objects:-
.highlight {color: blue;}
And at runtime I would like to change the 'color' attribute of this
class. So effectively making this:-
.highlight { color: yellow;}
I want to use something similar to this javascript this function:-
changecss(theClass,element,value)
Or can anyone suggest how I can use that javascript function ? I tried
this, but it failed:-
private native void changeCSS() /*-{
$doc.changecss('.highlight','color','yellow');
}-*/;
Thanks in advance,
Martin.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home