Results 1 to 4 of 4

Thread: <br />

  1. #1
    Join Date
    Feb 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation <br />

    Select (and copy) Form Element Script

    http://www.dynamicdrive.com/dynamici...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.

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    I wonder how this would work at all, since you don't specify a name in the textarea.
    Arie Molendijk.

  3. #3
    Join Date
    Feb 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I give id to textarea "id=mck".

  4. #4
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •