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 jQuery Basics (2014) Creating a Mobile Drop Down Menu Setting a value

I am lost with this challenge.

Can anyone give me some help with this challenge?

1 Answer

I was a bit thrown off when I did this challenge the first time since the challenge makes it look like there's two statements. However it is all in one statement.

The input element in the HTML has an id of #fullName. You use the val() method to insert the fullName from the given prompt.

//Select Input with the id of #fullName:  $("#fullName")
//Insert value in to full name input:  .val(fullName);
$("#fullName").val(fullName);