Hello
The "show / hide" text field does not work. In general, the problem is this: initially no radio should be selected (!). And if so, then display the message to the user, otherwise if the first radio is selected, the text field remains hidden, if the second radio is selected, the text field appears, here is the form code:
<div class="text_error_form"></div> <div class="registration_form"> <form method="post" onsubmit="return RegFormValid();"> <p> <input type="text" name="name" id="name" /> </p> <p> <input type="text" name="lastname" id="lastname" /> </p> <p class="user_type"> <input type="radio" name="user" value="privato" /> <input type="radio" name="user" value="giuridica" /> </p> <p> <input type="email" name="email" id="email" /> </p> <p> <input type="text" name="login" id="reglogin" /> </p> <p> <input type="password" name="pass" id="regpass" /> </p> <p> <input type="text" name="mobile" id="mobile" /> </p> <p> <input type="text" name="iva" id="iva" style="display: none;" /> </p> <p> <input type="text" name="town" id="town" /> </p> <p> <input type="submit" name="register_user" value="Reg" /> </p> </form> </div> It is necessary that when one radio is selected, the #iva block #iva , and when clicked on the second, it opens. But if no radio is selected, the user is displayed where it says that he should choose. At the moment, if no radio is selected, the user is not informed and should. if someone considers it necessary to optimize the script