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

Not sure where to start on this challenge!

Does anyone know a good hint that will start me off on this? I'm more confused as to whether I'm visiting a basic JavaScript task because it doesn't look like jQuery.

1 Answer

Kallil Belmonte
Kallil Belmonte
35,561 Points

First you need to select the element with the fullName ID, to select an element in jQuery you fellow this sintax:

//Select Input with the id of #fullName
$('#fullName');

Then you will need to put the value that the person will insert into the prompt (stored in the fullName variable) in the element with the fullName ID:

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