On Thu, Nov 6, 2008 at 2:36 AM, Satyakaran <[EMAIL PROTECTED]> wrote:
>
>
>function load() {
>//jQuery(function($) {
>$("#div1").load("starterkit.html");
>//});
>}
This one calls the .load() immediately.
>
>
> OR
>
> funct
The difference is that the commented out version assumed that jQuery
is the only JS library, as the $ function is used in other libraries,
such as mootools and Prototype, so the jQuery(function($) { }) stops
any conflicts
Rik
2008/11/6 Liam Potter <[EMAIL PROTECTED]>:
>
> he's commented out the
he's commented out the jquery call out.
All you would need is this;
jQuery(function() {
$("#div1").load("starterkit.html");
});
Satyakaran wrote:
Difference between the two code?
On Nov 6, 12:36 pm, Satyakaran <[EMAIL PROTECTED]> wrote:
function load() {
Difference between the two code?
On Nov 6, 12:36 pm, Satyakaran <[EMAIL PROTECTED]> wrote:
> function load() {
> //jQuery(function($) {
> $("#div1").load("starterkit.html");
> //});
> }
>
> OR
>
> function load() {
>
4 matches
Mail list logo