Re: Jquery
| From: | Adam Richardson | Date: | Mon, 21 Feb 2011 17:23:32 +0000 |
| Subject: | Re: Jquery | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-311502@lists.php.net to get a copy of this message | ||
On Mon, Feb 21, 2011 at 7:56 AM, Ellis Antaya <ellis.antaya@gmail.com>wrote:
> 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.
>
Actually, he can remove the $(document).ready function and leave the outer
function function, as this is a shorthand for the ready call:
http://api.jquery.com/ready/
<http://api.jquery.com/ready/>Adam
--
Nephtali: A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com