How to get the value of pre?
I have a pre tag in the HTML,like follows:
<form name='myform'>
<pre id='a' style="margin:0px;">
12345 912345 12345
</pre>
<script language="JavaScript" type="text/JavaScript">
alert(document.myform.a.value);
</script>
</form>
I want to get the value of pre tag,is there any method to do it? I use alert sentence to show it,but IE raise an error:
document.myform.a.value is null or not object.
Thanks for any help
|