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 -

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

c# - Search and Add Comment with OpenXML for Word -