dropDownList を含むフォームがあります。ドロップダウンが変更されると、アプリケーションはgetメソッドとしてリクエストをアクションに送信します。
私のjs関数は次のとおりです。
$('#SiteWidget_type').change(function(){
$.ajax({
type: 'GET',
url: "<?php echo CController::createUrl('siteWidget/au'); ?>" ,
data: {id: $(this).val()},
success:function(msg){
$('#W_1_layout').html(msg);
},
error: function() {
//alert(error);
},
dataType:'html'
});
});
しかし、2 つの要求が実行に移されましたが、その理由がわかりません