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

gcc - MinGW's ld cannot perform PE operations on non PE output file -

How to connect android app to App engine -

hadoop - Running Map Reduce Job shows error - Mkdirs failed to create /var/folders/ -