Jquery
| From: | Ethan Rosenberg | Date: | Tue, 15 Feb 2011 21:59:06 +0000 |
| Subject: | Jquery | ||
| Groups: | php.db php.general | ||
| Request: | Send a blank email to php-db+get-47682@lists.php.net to get a copy of this message | ||
I have the following Java script program, called js_test3.html:
<html>
<head>
<script type="text/javascript" src="https://getfirebug.com/firebug-lite-debug.js"></script> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>javascript Example Page</title> <script type="text/javascript">$(function() { $(document).ready(function() { $("button").click(function() {
$("p").hide();
});
}
}));
</script>
</head>
<body>
<h2>This is a heading</h2>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
<button>Click me</button>
</body>
</html>
which I cannot get to run. If I click on the text, or the button, nothing happens. The links in the program are to my son's computer, and have to be changed. I tried to link directly to the Jquery site, with no luck.
Help and advice, please.
Thanks.
Ethan
MySQL 5.1 PHP 5.3.3-6 Linux [Debian (sid)]