2010-07-26 2 views
1

오류 볼 : 이 http://jsfiddle.net/sEdGz/2/스크립트가 작동하지만 클릭 라디오를 선택하지 = 확인 JQuery와 아약스 POST

스크립트가 작동 //하지만, 클릭 라디오 =이 // mysql을 체크 확인되지 않습니다

$('#form1').find('.divtoclick').live("click", ..... 
$('input#form1').live("change", ..... 

은 아무도 도와 줄 수 : 및 PHP는 내가이 얻고 싶은

$('#form1').live("click change", function() { .... 
<div class='divtoclick'>neu berechnen</div> 
<form id="form1" method="post" name="bestellformular"> 

<input value="101" name="flyer_anzahl" type="radio" /> 1.000 
<input name="flyer_anzahl" type="radio" value="102" checked="checked"/> 
... 

좋은 일? thx

답변

1

이유는 return false입니다.

이 작동합니다 :

$('#form1').live("click change", function() { 
     $.ajax({ 
     type : "POST", 
     cache : false, 
     url  : "berechnung_ajax.php", 
     data : $(this).serializeArray(), 
     success : function(data) { 
         $('#berechnung').html(data); 
     }}); 

    return true; // return true in order not to prevent the event 
    });  
});