I am just starting to practice some programing these days and i wanted to mix it up a little so i asked a friend of mine who studies Computer Science and told me to look into Javascript and Jquery.
I read some tutorials but i am not sure of one, very beginner, thing.
when you type in $(document).ready(function(){
Can you do more then one thing inside it or does every JQuery function need a separate $(document)... ?
For example:
$(document).ready(function(){
$("a").click(function() {
alert("Hello World!");
});
$("#orderedlist").addClass("red");
});
})
It didn't work for me but i was wondering maybe i made a mistake somewhere or i just can't do it that way?


Sign In
Create Account

Back to top










