9/14 Modifying Content


#1

No change is visible in the preview, and it won't accept it. I can't figure out what's wrong. I tried changing the selector, I tried assigning a variable to it, I tried using .val() instead of .html() but nothing seems to be working.

$(document).ready(function)( {
    $('p').html("jQuery magic in action!");
});

Oops, try again. It looks like your paragraph's text isn't 'jQuery magic in action!'

Uncaught SyntaxError: Unexpected token )


#2

Try this:

$(document).ready(function() {
    $('p').html("jQuery magic in action!");
});

Probably you accidentally put parenthesis in wrong order or missed something.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.