Jquery > Modifying HTML Elements > 9.Modifying Content


#1

What is wrong with my code here?

$(document).ready(function(); 

$('p').html("jQuery magic in action!");

});

#2

document ready function is used incorrectly, see the docs


#3

Ok thank you,

I changed it to this and it's let me through :slight_smile:

$(function() {

#4