How do i search divs for text from a select form and change diplay of the divs to none? : I'm trying to hide divs based on a value in a dropdown selector. I'm not sure where I have went wrong. here is my code.

    document.getElementById("SearchFilter").onchange = function() {
        var matcher = new RegExp(document.getElementById("SearchFilter").value, "gi");
        for (var i = 0; i < document.getElementsByClassName("v-product").length; i++) {
            if (matcher.test(document.getElementsByClassName("tipue_search_content_text")[i].innerHTML)) {
                document.getElementById("v-product").style.display = "inline-block";
            } else {
                document.getElementById("v-product").style.display = "none";
            }
        }
