I would like to add css to a assigned span class if it contains a number higher than 55, also this must on a page load and not a button trigger.
Thanks any help would b
$(function(){ $('.subTotalPrice').each(function(){ if(parseInt($(this).text, 10) > 55){ $(this).css({'color':'red', 'text-decoration':'underline'}); } }); });