[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Select Multiply values pass them in string

Posted on 2014-07-11
Medium Priority
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:Seven price
LVL 25

Accepted Solution

Kyle Hamilton earned 2000 total points
ID: 40192301
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.


Author Closing Comment

by:Seven price
ID: 40194385
Thanks, you know there is always a bigger picture than what is perceived.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) 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…
Requirements JQuery 1.6+ HTML CSS Introduction This article was inspired by an EE question (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28372511.html) on how to make a page show some balloons animate up a page…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…
Suggested Courses

872 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