how to do a switch button in jquery ?

how to do a switch button in jquery ?

Hi,
I am looking for a switch button that for example show ON or OFF, and when clicked I want to know the value is ON or OFF.
Thanks, your help is appreciated.