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
Post a Comment