how to convert jquery object to string

how to convert jquery object to string

Hi to all,I am a begginer in jquery and may be this question look silly to you genious guys.
Well i have two forms in my jsp page.While submiting the 2nd form ,it takes value of one input fields of 1st form and submits. So for this i did like this

<html>
<head>

  <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
  <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script></head>
<body>
<form action ="#1">
<input type="text" id="t">
<input type="submit"></form>
<form action ="#2" id="form2">
<input id="hiddenField" type="hidden" value="" name="hidden">
<input id="form2submit" type="button" value="get">
</form>
<script>
$(document).ready(function(){
    $('#form2submit').click(function(){
         $('#hiddenField').val($('#t'));
         $('#form2').submit();
    });
});
</script>
</body>

</html>
 The problem is that when you run it in browser and enter the value "s" and hit get then the url is
file:///home/sukanth/Desktop/i.html?hidden=[object+Object]#2
i should get hidden=s but its not coming.
Any ideas how to do it