Board Thread:General Coding Help/@comment-4347751-20160117184922

Now, I'm no coding genus, well I'd say I lack much knowledge in JavaScript & jQuery, but I've tried to modify SkinSwitchButton/code.js to create some sort of functioning code. To which you can probably guess, I have somewhat failed. Now I'm sure I could of gone about creating this based on a different code but here goes. The code I have is this:

I know that the probability of any of this working is 0, because I am an idiot, but can someone please explain why and maybe offer a solution? 