Could be of interest:
Code:
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.pack.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
$('#trig').click(function()
{
if(this.value.toLowerCase()=='expand')
{
$('#mytxt').animate({height:'300px'},1000);
this.value='Collapse';
}
else
{
$('#mytxt').animate({height:'22px'},1000);
this.value='Expand';
}
});
});
</script>
<input type="text" id="mytxt"><br><input type="button" value="Expand" style="margin-top:10px;" id="trig">