Toggle button

Toggle button

Hi,

I have created a custom toggle button through css.

How should I take the state of this toggle button.

Can anyone help me out.

Thanks in advance.