PDA

View Full Version : <br />



mochikay
02-15-2012, 09:46 AM
Select (and copy) Form Element Script

http://www.dynamicdrive.com/dynamicindex11/selectform.htm

I use this script on my blog to show code in each post.

But when I copy and paste the code I want to show in textarea,it appear <br />
that does not include in my code.

So how to solve this problem.


<textarea id="mck" cols="65" rows="6" style="border: medium double; " wrap="hard" readonly="yes"> CODE HERE </textarea>

That is the code I used.

Thank.

molendijk
02-15-2012, 10:34 AM
I wonder how this would work at all, since you don't specify a name in the textarea.
Arie Molendijk.

mochikay
02-16-2012, 04:19 AM
I give id to textarea "id=mck".

molendijk
02-16-2012, 10:29 AM
Then I suppose you have this:
<form>
<a class="highlighttext" href="javascript:selectcopy('mck')">Select All</a><br>
<textarea id="mck" cols="65" rows="6" style="border: medium double; " wrap="hard" readonly="yes"> CODE HERE </textarea>
</form>
That should work.
===
Arie.