polymer Example of Polymer toggleAttribute

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  1. toggleAttribute(name, bool, node)

Parameters

NameDetails
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

Remarks

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?