Run change event for select even when same option is reselected

If you mean selecting with the mouse, you can use mouseup. However, it will fire when the select box is being opened as well, so you’ll need to keep track of the amount of times it was fired (even: select is being opened, odd: select is being closed): http://jsfiddle.net/T4yUm/2/.

$("select").mouseup(function() {
    var open = $(this).data("isopen");

    if(open) {
        alert(1);
    }

    $(this).data("isopen", !open);
});

Leave a Comment