SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist JordashTalon's Avatar
    Join Date
    Dec 2008
    Posts
    505
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    <br> tag appears in Textarea

    I'm trying to make a textarea where people can copy and paste banner code to place in there website like so
    <textarea>
    <a href="domain.com"><banner image></a>
    </textarea>

    It works except for in the textarea it inserts <br/> tags randomly, how do I remove them?

  2. #2
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,721
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Never heard of this before. Do you have a site where we can look at it? Any Javascript going on?
    Always looking for web design/development work.
    http://www.CodeFundamentals.com

  3. #3
    SitePoint Evangelist JordashTalon's Avatar
    Join Date
    Dec 2008
    Posts
    505
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://psdesignzone.com/affiliate-application

    is where it's happening, I don't have any javascript it just seems to add the <br/> tags on it's own

  4. #4
    SitePoint Evangelist JordashTalon's Avatar
    Join Date
    Dec 2008
    Posts
    505
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wait I figured it out, Textarea takes enters literally

    e.g.
    <textarea>
    <code stuff>
    </textarea>

    Needs to be

    <textarea><code stuff</textarea>


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
  •