Re: Jquery

From: Date: Mon, 21 Feb 2011 12:56:48 +0000
Subject: Re: Jquery
References: 1 2  Groups: php.db php.general 
Request: Send a blank email to php-db+get-47690@lists.php.net to get a copy of this message
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@pocket.com> 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

« previous php.db (#47690) next »