Review of jQuery Events Question (help Me)


#1

Hello,

I am trying to figure out when I complete my code and I try using it in the code editor (the result of my code). The code disappears. Help Me!!!!

$(document).ready(function() {
    $('button').click(function() {
    	var toAdd = $("input[name=message]").val();
        $('#messages').append("<p>"+toAdd+"</p>");
    });
});

#2

Please post a link to the exercise. Thanks.

If I recall, we cannot change the name attribute or the list class.


#3

https://www.codecademy.com/en/courses/web-beginner-en-JwhI1/0/1?curriculum_id=50a3fad8c7a770b5fd0007a1

sorry about that


#4

Okay, now we can see you have not changed anything.

Be careful not to use Enter or Return to submit an input field. Use the button.


#5

okay, not it saying "mixed spaces and tabs"


#6

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