[eluser]reghan[/eluser]
Hello I am having problems using jquery. I am looking to select each cell in my table with the text "Yes" and have the background change to green. If its no then I do not want it to change color. I want this to be able to do dynamically. here is my code so far in my view. my other Jquery plug in works fine, so I know its not a pathing to jquery issue.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Disaster Recovery - Systems List</title>
<link href="<?php echo base_url(); ?>style/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url(); ?>ts/themes/blue/style.css" rel="stylesheet" type="text/css" />
[removed][removed]
[removed][removed]
[removed][removed]
[removed]
$(document).ready(function(){
$("#mytable").tablesorter();}
);
[removed]
[removed]
$("td:contains('Yes')").css("text-decoration", "underline");
[removed]
</head>
<body>
<div class="content">
<h1>List of Disaster Recovery Systems</h1>
<div class="data"><?php echo $table; ?></div>
<br />
<?php echo anchor('bia/add_sys/','add new data',array('class'=>'add')); ?>
</div>
</body>
</html>
any help would be greatly appreciated!! thanks in advance!