开发者

counterpart of C#'s listBox1_SelectedIndexChanged in JS

Is the开发者_如何学JAVAre such a thing as listBox1_SelectedIndexChanged but in PHP ?


Nope, but you could use jQuery :)

$(document).ready(function() {
    $("#selectList").change(function() {
        var myVal = $(this).val();
        alert(myVal);
    });
});

If you need to send data to server and get back from it, use $.post() / $ajax() etc ...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜