如何知道在jquery中选择哪个单选按钮?
2022-08-30 12:59:05
这是我的代码...在这里,我正在使用php代码动态生成单选按钮...
我的问题是如何获得在单击addForm()函数时选择的单选按钮...
<div class="modal-body">
<div> <input type="radio" name="form" value="Form-Name">Form-Name</div>
<div> <input type="radio" name="form" value="Kalpit-Contact">Kalpit-Contact</div>
<div> <input type="radio" name="form" value="Kalpit-Contact test">Kalpit-Contact test</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" onclick="addForm()">Add Page</button>
</div>
提前致谢