SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2008
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    jQuery keeps adding comers to the result

    I have some code Gist.github .
    When I keep adding more lines from the input boxes, the result has ',' added to the end and every line has more added.
    If i have 2 lines I have 2 comers at the end, 3 lines 3 comers ect...
    Does anybody know what causes this ?

  2. #2
    SitePoint Mentor bronze trophy
    fretburner's Avatar
    Join Date
    Apr 2013
    Location
    Brazil
    Posts
    1,256
    Mentioned
    32 Post(s)
    Tagged
    4 Thread(s)
    Hi trikkky,

    Do you have this code online somewhere that you could link to? Or, if not, could you share the HTML that goes with it? It's hard to debug the code without being able to run it.

  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2008
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have changed the selector to target a different input $input[placeholder]) as I think the .each was grabbing the input type="submit' as I always had a blank one at the end. When I changed the selector it never had a blank field.

  4. #4
    SitePoint Mentor bronze trophy
    fretburner's Avatar
    Join Date
    Apr 2013
    Location
    Brazil
    Posts
    1,256
    Mentioned
    32 Post(s)
    Tagged
    4 Thread(s)
    Does that mean you've managed to solve the problem? Or do you still need some help?


Tags for this Thread

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
  •