I have a page where I create a popup. On the popup created, I click on a radio button created on the popup and on click of a button I need to submit the form and pass the radio button value using post method to a new page. How can I achieve this using jquery or javascript?
1条回答 默认 最新
- doukui4786 2012-07-09 20:27关注
Try using AJAX:
Reference: http://api.jquery.com/jQuery.ajax/
$.ajax({ type: "POST", url: "post_page.php", data: { radio: $("radio_btn").val() } }).done(function( msg ) { alert("Done!"); });
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报