[SOLVED] Where does onclick function trigger go in flip switch?

[SOLVED] Where does onclick function trigger go in flip switch?

http://jsbin.com/iboruh/3/edit

why does this simple function not work? could it be because of the placement of the onclick? i found it the most logical.

is there any reference stating where onclick should go in case of a flip switch? I have been to
but onclick is not mentioned.


____________________________________