Google
  Web www.spinics.net

Re: [PHP] Jquery

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hi, first, like everyone else before me told already, you forgot to load
jquery in your page.
Example :
<script type="text/javascript" src="http://code.jquery.com/jquery-1.5.min.js
"></script>

Also, i would change your script to remove the first function that was
wrapping everything.
$(document).ready is enough.

<script type="text/javascript">// <![CDATA[
$(document).ready(function() {
   $("button").click(function() {
      $("p").hide();
   });
});
// ]]></script>

On Tue, Feb 15, 2011 at 17:10, Jay Blanchard <jblanchard@xxxxxxxxxx> wrote:

> [snip]
> 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">
> [/snip]
>
> a. wrong list, see forum.jquery.com
> 2. you have not included the jQuery library
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Ellis
1100101000111101

twitter.com/floverdevel
facebook.com/ellis.antaya
google.com/profiles/ellis.antaya
linkedin.com/in/ellisantaya

[PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Plagiarism Notes]     [Postgresql]     [Yosemite News]

Powered by Linux