There is a lot of input type="radio" in one form, PopUp-ом opens the second, when you click to узнать результат . It is necessary to transfer all selected input type="radio" secondly, in order to send it in a return letter. How to do it better? I heard about the serialization of form data, but it is impossible to implement, if not difficult, give an example, please. Thank you in advance. I enclose a fragment of the form code:
<form class="need-sect__form" action="#"> <label class="need-sect__label">Вопрос</label> <div class="need-sect__check-container"> <label class="need-sect__check-block">Да <input type="radio" name="name1" value="yes"><span></span> </label> <label class="need-sect__check-block">Нет <input type="radio" name="name1" value="no" checked><span></span> </label> </div> <label class="need-sect__label">Вопрос</label> <div class="need-sect__check-container"> <label class="need-sect__check-block">Да <input type="radio" name="name2" value="yes"><span></span> </label> <label class="need-sect__check-block">Нет <input type="radio" name="name2" value="no"><span></span> </label> </div> <label class="need-sect__label">Вопрос</label> <div class="need-sect__check-container"> <label class="need-sect__check-block">Да <input type="radio" name="name3" value="yes"><span></span> </label> <label class="need-sect__check-block">Нет <input type="radio" name="name3" value="no"><span></span> </label> </div> <div class="need-sect__btns"> <a class="popup-with-zoom-anim def-btn" href="#small-dialog">Узнать результат </a> </div> </form>
radioButtonneeded so that only 1 of them is selected. Why transfer everything? Clarify the question. Well, the code is desirable - Dmytrykhtmlfrom one form to another? Or do you want to transfer selected values from one form to another? - Dmytryk