0

Problem solved.

When I put the code below into my system, all my jquery just stop to work. Nothing happends when I try to trigger any other event.

The file sok_kund_db.php is error free.

$("#avbokad_kund_circle").click(function () {
    var visa = '';
    visa += 'klar_kund_circle=' + $(this).attr('value') + '&' + 'mass_id=' + '<?php echo $_GET['
    mass_id ']; ?>';
    $.post('sok_kund_db.php', visa, function (data) {
        $("#resultat").html(data);
    });
    return false;
});

I can not see where I did wrong.

4

2 回答 2

0

尝试改变这一点

'<?php echo $_GET['mass_id']; ?>'

为了这

'<?php echo $_GET["mass_id"]; ?>'
于 2013-06-23T01:31:56.530 回答
0

在 php 术语周围加上双引号 mass_id 周围的单引号干扰了您正在构建的字符串

"<?php echo $_GET['mass_id']; ?>"

或者,您可以这样做:

'<?php echo $_GET["mass_id"]; ?>'
于 2013-06-23T01:30:07.733 回答