View Single Post
  #1 (permalink)  
Old June 28th, 2005, 02:26 AM
Edward King Edward King is offline
Authorized User
Join Date: Jul 2003
Location: , , .
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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

<script language="JavaScript" type="text/JavaScript">

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

Reply With Quote