jquery textarea how can I get the value

I have seen a lot of people mention this, but it just isn't working.  How can I get the value of what is typed into a text area in jquery?

$("#ReportThisComments").val();
This does not work
jackjohnson44Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

leakim971PluritechnicianCommented:
Hello jackjohnson44,

$("#ReportThisComments").val();

do you have :



# is for id

Regards.
0
Steve KrileCommented:
Here is a full working model
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<title>Untitled Document</title>
		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>


	</head>
	<body>
		<textarea id="ReportThisComments"></textarea>
		<button id="clicker">Click to see textarea text</button>
	</body>

		<script type="text/javascript">

			$(function(){
				$("#clicker").click(function(){
					//alert the textarea value
					alert($("#ReportThisComments").val());
				});
			})
		</script>

</html>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.