01.
<html>
02.
<head>
03.
<title>ThaiCreate.Com jQuery Tutorials</title>
04.
<style>
05.
p { margin: 4px; font-size:16px; font-weight:bolder; }
06.
.blue { color:blue; }
07.
.under { text-decoration:underline; }
08.
.highlight { background:yellow; }
09.
</style>
10.
<script type=
"text/javascript"
src=
"jquery-1.6.4.js"
></script>
11.
<script type=
"text/javascript"
>
12.
$(document).ready(
function
(){
13.
14.
$(
"p:odd"
).removeClass(
"blue under"
);
15.
16.
});
17.
</script>
18.
</head>
19.
<body>
20.
21.
<p class=
"blue under"
>Hello</p>
22.
23.
<p class=
"blue under highlight"
>and</p>
24.
<p class=
"blue under"
>then</p>
25.
<p class=
"blue under"
>Goodbye</p>
26.
27.
</body>
28.
</html>