Posted on: 5/2/2011 1:37:49 AM | Views : 217

Hello,
I'm working with a custom AJAX control, and getting a weird behavior with DomElement.toggleCssClass.  To verify, I do the following in the immediate window:
?this.get_element().className = "StyleA StyleB";
"StyleA StyleB"
?Sys.UI.DomElement.toggleCssClass(this.get_element(), "StyleB");
undefined
?this.get_element().className
""
The last result should be StyleA, not blank.  Is this a bug to log with Connect.microsoft.com, or am I doing something wrong?
Thanks.
...

Go to the complete details ...