开发者

counterpart of C#'s listBox1_SelectedIndexChanged in JS

开发者 https://www.devze.com 2023-03-21 13:52 出处:网络
Is the开发者_如何学JAVAre such a thing as listBox1_SelectedIndexChanged but in PHP ? Nope, but you could use jQuery :)

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

精彩评论

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