Name: Anonymous 2011-08-03 14:07
What is wrong with mah switch statement?
http://pastebin.com/vuL8zjaX
The function is called onclick of two text-areas. Both call the function and pass it "this" as a parameter.
It does nothing though. It worked fine when tehre was no switch statement and I only did cleared the box of 1 text area.
Am I comparing the id wrong? I tried it with "" and with ''. None work.
Or whats a better way to go about it?
http://pastebin.com/vuL8zjaX
The function is called onclick of two text-areas. Both call the function and pass it "this" as a parameter.
It does nothing though. It worked fine when tehre was no switch statement and I only did cleared the box of 1 text area.
Am I comparing the id wrong? I tried it with "" and with ''. None work.
Or whats a better way to go about it?