dongmaonao0505
dongmaonao0505
2012-07-09 20:25

提交在弹出窗口中创建的表单

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 doukui4786 9年前

    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!");
    });
    
    点赞 评论 复制链接分享