Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2010
    Posts
    79
    Thanks
    1
    Thanked 0 Times in 0 Posts

    problem with radio button and external script

    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?

  • #2
    New Coder
    Join Date
    Jan 2010
    Posts
    79
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Solved

    I missed function ahead addPrivate


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •