OptionWidget: Simplify code by using toggleClass instead of if/else

Follows-up eaa1b7f06d.

Change-Id: I00e4737816296ae0e22d23eb0d19075021ddc23d
SelectWidget: Minor coding style clean up

Follows-up eaa1b7f06d.

* One argument per line or all on one.
* Use chaining instead of resolving the same jQuery reference twice.

Change-Id: Iae728f28a150ef30cfda42543d37029ea32669a6