Login Register

Changing label of a DropDownButton

When I select a button I want the selection to stay in place. Apparently I can use setLabel but when I do this

document.getElementById("scaleButton").setLabel("test");

I get an error that says setLabel is not a function. I tried setCaption too just in case AOL was using old code. No cigar. Any suggestions? Thanks!

My drop down button code

100%

nevermind! I need to use

nevermind!

I need to use dijit.byId("scaleButton")