0

IDに基づいてフォームを取得する必要があるため、ajaxを使用してIDを投稿しようとしていますが、応答がありません。私は助けが必要です。前もって感謝します

<script type="text/javascript">
jQuery('#getcat').click(function () {
    jQuery('#getcat').hide();
    var divval = jQuery("select[id^='cat']").val();
    jQuery("#Loading").fadeIn();
    datastring = jQuery('#mainform').serialize();
    //datastring='id="'+divval+'"';

    jQuery.post(window.location.pathname + "?form=1", datastring, function (response) {
        jQuery("#Loading").fadeOut('fast');
        jQuery('.form_open').load();
        jQuery('.form_open').html(response);
    });

});
</script>
4

0 に答える 0