01.
<html>
02.
<head>
03.
<title>ThaiCreate.Com jQuery Tutorials</title>
04.
<style>
05.
.highlight{background-color: yellow}
06.
</style>
07.
<script type=
"text/javascript"
src=
"jquery-1.6.4.js"
></script>
08.
<script type=
"text/javascript"
>
09.
$(document).ready(
function
(){
10.
11.
$(
"p span"
).last().addClass(
'highlight'
);
12.
13.
});
14.
</script>
15.
</head>
16.
<body>
17.
18.
<p><span>Look:</span> <span>This is some text
in
a paragraph.</span> <span>This is a note about it.</span></p>
19.
20.
</body>
21.
</html>