.all {text-decoration:bold;}
| Mobiles |
| Samsung Mobiles |
| All Mobiles |
6 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Kamal RawatPosted Jan 29, 2014, 6:08 AM
HTML
SCRIPT
$('#tbl tr td').each(function(){
if($(this).html().toLowerCase().indexOf("required") == 0){
$(this).addClass('red')
}
});
The script will go through each td and if it founds any td starts with required or Required
will apply red class.
Mark it accepted if you find it helpful for your question.
Pranay RanaPosted Jan 29, 2014, 5:38 AM
Emad khanPosted Jan 29, 2014, 5:24 AM
Pranay RanaPosted Jan 29, 2014, 5:22 AM
$("td:contains('All')").each(
function()
{
if($(this).text().indexOf('All') === 0)
$(this).addClass('all'); }
);
http://jsfiddle.net/vpW5g/5/
Emad khanPosted Jan 29, 2014, 4:35 AM
Pranay RanaPosted Jan 29, 2014, 3:50 AM
$("td:contains('All')").each(
function()
{ $(this).addClass("all"); }
);
Demo for the same : http://jsfiddle.net/vpW5g/