| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
|---|
| 2 | "http://www.w3.org/TR/html4/loose.dtd"> |
|---|
| 3 | <html> |
|---|
| 4 | <head> |
|---|
| 5 | <title>Test case for setting attr values</title> |
|---|
| 6 | <script src="jquery-1.2.6.min.js" type="text/javascript"></script> |
|---|
| 7 | <script type="text/javascript"> |
|---|
| 8 | $(document).ready(function() { |
|---|
| 9 | $('#testsinglequote').attr('title', "A 'quoted' title."); |
|---|
| 10 | $('#testdoublequote').attr('title', 'A "quoted" title.'); |
|---|
| 11 | $('#testopenbracket').attr('title', 'Is 2 < 4 ?'); |
|---|
| 12 | $('#testclosebracket').attr('title', 'Is 2 > 4 ?'); |
|---|
| 13 | $('#testamp').attr('title', 'Scrooge & company'); |
|---|
| 14 | }); |
|---|
| 15 | </script> |
|---|
| 16 | </head> |
|---|
| 17 | <body> |
|---|
| 18 | |
|---|
| 19 | <p><a href="#" id="testsinglequote" title='dummy'>Title should be <code>A 'quoted' title.</code></a> |
|---|
| 20 | <p><a href="#" id="testdoublequote">Title should be <code>A "quoted" title.</code></a> |
|---|
| 21 | <p><a href="#" id="testopenbracket">Title should be <code>Is 2 < 4?</code></a> |
|---|
| 22 | <p><a href="#" id="testclosebracket">Title should be <code>Is 2 > 4?</code></a> |
|---|
| 23 | <p><a href="#" id="testamp">Title should be <code>Scrooge & company</code></a> |
|---|
| 24 | |
|---|
| 25 | </body> |
|---|
| 26 | </html> |
|---|