解决方案 »

  1.   

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title></title>
    <script src="http://code.jquery.com/jquery-1.11.0-beta1.js" type="text/javascript"></script>
    <script>
    $(document).ready(function(){
    $(".radio").click(function() {
    var str = window.prompt("请输入内容","password") 
    str += $(this).prop('value');
    alert(str)
    });
    });
    </script>
    </head>
    <body> <input type="radio" value="radio" class="radio" />
    </body>
    </html>
      

  2.   

    这个弹出来的页面我知道怎么把数据存到数据库,我是想把弹出来的页面跟我之前radio 的页面里的属性一起存到数据库怎么存
      

  3.   

    $(".radio").click(function() {
    var str = window.prompt("请输入内容","password") 
    str += $(this).prop('value');
    $.ajax({
    url: 'url',
    type: 'POST',
    dataType: 'html',
    data: 'str='+str,
    success: function(msg){
         alert(  msg );
       } })

    });