Question: ```
$("#write").click(function(){
    $("#msg").$('#quote').html();

});

```

I am learning jquery (new to js as well). This function writes to a textbox id=msg. However I am having problems pulling the content.

How do I pull the content of a div and use in my function (#quote)? Right now it just writes #quote, not the content of the div called quote.

Also tried:

```
var quote = $("#quote").html();
    $("#msg").$(quote.val).html();

```

Out of ideas.

Answer: 
You have a syntax error. Try this:

```
$("#write").click(function(){
   var quote = $('#quote').html();
   $("#msg").html(quote);
});

```
well I think you should do

```
 $("#msg").val($("#myDiv").html());

```

This will set the value of the div as the value of the textbox.