How can I use firebug fof checking and what should I check with it? And how do i know if the jquery loads?
In firebug click the dropdown next to head, then click the dropdown next to the jQuery link. If jQuery is loading you will see the jQuery script there.
It is not necessary to use absolute urls, relative will do fine.
I just started learning javascript and I made my first functsion.
HTML:
CSS :
* {
margin: 0;
padding: 0;
font-family: Tahoma, Geneva, sans-serif;
font-size: 12px;
}
/* Haihtuv kast */
#kast {
background: #000;
height: 300px;
width: 300px;
}
javascript:
$(function() {$('a').click(function() {
$('#kast').fadeout(5000);
});
});
The addresses are right...
The paths don't look right to me, but it's your directory structure.
How can I use firebug fof checking and what should I check with it? And how do i know if the jquery loads?
Do I have to tell the js document where the jQuery is situated?
In firebug click the dropdown next to head, then click the dropdown next to the jQuery link. If jQuery is loading you will see the jQuery script there.
It is not necessary to use absolute urls, relative will do fine.