.Net Project/Jquery 1.3.2

06장 JQuery특정 단어 검색 (Contains)

Magic_kit 2009. 11. 5. 13:04
반응형
Contains.실행파일 
 

 Contains.htm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

    <title>특정 단어 검색 (Contains)</title>


   
<style type="text/css">

        .redColor { color:Red; background-color:Yellow }

    </style>

    <script src="jquery-1[1].3.2-vsdoc2.js" type="text/javascript"></script>

    <script type="text/javascript">

        $(document).ready(function () {

          $("td:contains('RedPlus')").addClass("redColor");

        });  

       

    </script>

</head>

<body>

    <table>

        <tr>

            <td>RedPlus</td>

        </tr>

       

        <tr>

            <td>Agent</td>

        </tr>

    </table>

 

</body>

</html>







반응형