javascript - jQuery(.filter): how to use numerical range instead of .lenght<#? -


i not sure how use numerical range such 0 159, instead of .length<3. appreciate help.

$(document).ready(function() { $('td.green.center').filter( function(){ return $(this).text().length<3; } ) .parent().hide() }); 

use parseint convert string integer.

$(document).ready(function() {     $('td.green.center').filter( function(){         return parseint($(this).text())<160;     }).parent().hide() }); 

Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -