Greetings to all who have entered. Punching one topic, and gently ask her.
Imagine a form (quite simple), inside form 2 input-radio. Please help with 2 questions:
First: Is it possible to make such a JS that would hide the div when switching input-radio? Imagine you downloaded such a form, and you see it all, taped a switch - and part of the form was hidden.
<form...> <input type="radio" CHECKED> <input type="radio"> <input type="text"...> <input type="text"...> <div id="div_kotoriy_menayetsa"> <input type="text"...> <input type="text"...> <input type="text"...> </div> <input type="hidden" value="ch1"> <input type="submit"...> </form>
Second: is it possible to make a similar, but opposite, script when loading a form, what would be the 2nd (and not 1st) input-radio to be CHECKED, and accordingly, the div wants to hide from the beginning?
upd. corrected a small mistake