Select Multiply values pass them in string

Posted on 2014-07-11
Last Modified: 2014-07-14
Yes I need to get the value of each text box and pass it in a jquery string.  From my example you see I am only passing one of the textboxes. I need to pass anyone that has data in the format example below.


{"CommentText1":"dsfsdf","CommentText2":"text comment 2","rowCount":2}

{"CommentText1":"dsfsdf","CommentText2":"dsfsewedf","CommentText3":"row 33 sdwith dfsdfd","rowCount":3}

<textarea id="Comments1" name="Comments1"  cols="40" rows="6"></textarea>

<textarea id="Comments2" name="Comments2"  cols="40" rows="6"></textarea>

<textarea id="Comments3" name="Comments3"  cols="40" rows="6"></textarea>

Open in new window

Example click here
Question by:sevensnake77
    LVL 25

    Accepted Solution

    I'm not sure I understand exactly what you are trying to do.

    The following will give you a concatenated string of all text areas, as well as an object where the keys are the element id, and the values are the text in the corresponding element.
    LVL 9

    Author Closing Comment

    Thanks, you know there is always a bigger picture than what is perceived.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Introduction HyperText Transfer Protocol ( or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
    Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
    The viewer will learn how to dynamically set the form action using jQuery.
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now