jQuery onchange/onfocus select box to display an image?

I’m not sure you need a plugin to deal with this:

$(document).ready(function() {
    $("#image").change(function() {
        var src = $(this).val();

        $("#imagePreview").html(src ? "<img src="" + src + "">" : "");
    });
});

Leave a Comment