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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -