...

View Full Version : problem with radio button and external script



dark0s
06-07-2010, 08:51 PM
I have the following code:



<form id="registration" action="/cgi-bin/registration.cgi" method="POST" onsubmit="return control()">
<fieldset>
<legend>Fill up this module</legend>
Private <input id="private" type="radio" name="type" value="private" onclick="return addPrivate()"/><br/>
Community/Organization <input id="organization" type="radio" name="type" onclick="alert('Organization')"/><br/>
<br/>



and the following script:



addPrivate() {
alert('Private');
}


but alert windows doesn't not appear.
Where is the problem?

dark0s
06-07-2010, 09:38 PM
I missed function ahead addPrivate



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum