Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67527

I am trying to loop through a table and get the td elements to follow a condition

$
0
0

i just want make so it the tr hide when the td does not follow the requirments, tried with jquery and javascript, don't know what's wrong

$(document).ready(function(){
        $("td").each(function() {
            var id = $(this).attr("price_search");
         if (id > value4 && id < value5) {
            $(this).hide;
        }
        else {
            $(this).hide;
        }
        });         
    });

}


Viewing all articles
Browse latest Browse all 67527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>