Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Bummer oops sync is incorrect

var fullName = prompt("What is your full name?"); $('#fullName').attr('value', fullName); //Select Input with the id of #fullName <input id="fullName" name="fullName" value="" disabled> //Insert value in to full name input

var fullName = prompt("What is your full name?"); $('#fullName').attr('value', fullName);

//Select Input with the id of #fullName <input id="fullName" name="fullName" value="" disabled>

//Insert value in to full name input $('#fullName').alt('value', fullName);

1 Answer

Steven Parker
Steven Parker
229,787 Points

It looks like you have a stray line of HTML code in your JavaScript.

It's hard to tell what's code and what's comment without proper formatting, but it looks like you might have a stray line of HTML (starting with "<input...". You also seem to have an extra code line that calls a method I don't recognise named .alt(). I suspect neither of those lines should be there.

Also, when posting code, Please use the instructions for code formatting in the Markdown Cheatsheet pop-up below the "Add an Answer" area. :arrow_heading_down:

It would also be helpful to provide a link to the course page you were working with.