polymer Example of Polymer toggleAttribute

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9


  1. toggleAttribute(name, bool, node)


nameString: name of the HTML attribute which needs to be toggled
boolboolean: Boolean to force the attribute on or off. When unspecified, the state of the attribute will be reversed.
nodeHTMLElement: name of the node which contains the HTML attribute. Defaults to this


A good example of this will be form, where submit button should only be active if all the mandatory fields have input.

Got any polymer Question?