123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|653|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> C/C++/C#/Other -> what is wrong with this java script function?

Sat, 12 Jun 2010, 09:00
ShadowIce
I can't get the

function getchecked() to show

an alert box...



thanks!
Sat, 12 Jun 2010, 09:10
shroom_monk
On the line you're asking for a form 'radioExampleForm', when the form doesn't exist. You need to use <form> tags to get it to work!

On a side note, you have an extraneous } symbol before the line function getchecked(){. Just so you know.

-=-=-
A mushroom a day keeps the doctor away...

Keep It Simple, Shroom!
Sat, 12 Jun 2010, 09:19
ShadowIce
i fgt. to add the form.

<form name="radioExampleForm" method="get" action="">

it still wont work
Sat, 12 Jun 2010, 09:29
shroom_monk
Really? I added in the form using your line there, and it worked. Except for the SQL option, because you left that out of the code.

Here's your code, working, with the <form> lines, the SQL recognition added, the extra } removed and proper indenting:


-=-=-
A mushroom a day keeps the doctor away...

Keep It Simple, Shroom!