load() is suppose to take a url as the first parameter.
http://docs.jquery.com/Ajax/load

On Oct 1, 8:47 am, flyagaricus <flyagari...@gmail.com> wrote:
> I'm new to JQuery
>
> I can't get load() to work with a div class:
>
> <script type='text/javascript'>
>         jQuery(document).ready(function($) {
>                 $(".Loader").load(function(){
>                         alert("bang");
>                 });
>         });
> </script>
> <div class="Loader">
>       <img src="http://home.arcor.de/poesenau/Witness-Tree.JPG";
> width="1200" height="1600" />
> </div>
>
> if I target the IMG, then it works fine, but how come it doesn't work
> with the div?

Reply via email to