getScale(id).unselect() (since PennController 1.6)

Will unselect the option currently selected.

If the scale is a slider, it will set it back to the central value.


[js highlight=”5″ try=”true”]newScale(“score”, 10)
.settings.callback( getScale(“score”).unselect() )

Prints a 10-point radio button scale and a button reading Unselect which, when clicked, unselects the currently selected button on the scale.

Published by Jeremy

Researcher in semantics and pragmatics; Programmer of PennController for IBEX