vkdixit
03-24-2009, 09:53 AM
Hi all,
I am using prototype js. I have fetch the value of textbox here, but right now unable to fetch the value of textarea....
I am doing like below:
<script language="javascript" type="text/javascript">
var comm = document.post_comm.comment.value;
alert(comm);
</script>
<textarea cols="80" rows="10" class="tb" id="comment" name="comment"></textarea>
But i am getting null value here....
after that i used (var comm = $('comment');)
it gives us some alert like: ([object HTMLTextAreaElement])
plz help
I am using prototype js. I have fetch the value of textbox here, but right now unable to fetch the value of textarea....
I am doing like below:
<script language="javascript" type="text/javascript">
var comm = document.post_comm.comment.value;
alert(comm);
</script>
<textarea cols="80" rows="10" class="tb" id="comment" name="comment"></textarea>
But i am getting null value here....
after that i used (var comm = $('comment');)
it gives us some alert like: ([object HTMLTextAreaElement])
plz help