canotto90 canotto90 - 1 year ago 141
Javascript Question

How to get the value form Materialize's Switches?

I'm using the Materialize library and I'm trying to retrieve the value from the switches component, but it always returns

regardless of it being turned on or off.

Is there a way to determine if it's switched on or off, programatically?

Answer Source

You have to use .checked For example: Javascript:




I hope that I help you.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download