How to get Textarea value in jquery, if I am using

```
<form name="myform"> 
<textarea name="msg" id="msg"></textarea>
</form>

```

This syntax is not working properly

```
 var text = $('textarea#message').val();

```

can anybody tell me about the things ?