?
Solved

retrieve all textbox values

Posted on 2014-07-23
5
Medium Priority
?
136 Views
Last Modified: 2014-07-23
type in empty textbox and the submit to get info. 
the jsonobject only retrieves the last 2 value of the text box. I would like to get all of them.

Open in new window


http://jsfiddle.net/sevensnake/Nbr7Y/5/
0
Comment
Question by:Seven price
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 2000 total points
ID: 40214598
Map the values back

http://jsfiddle.net/Nbr7Y/6/

    JSONObject.Threshold = $('[id^=Threshold]').map(function () {
        return this.value
    }).get()

    JSONObject.sec = $('[id^=SecureType]').map(function () {
        return this.value
    }).get()

Open in new window

0
 
LVL 9

Author Comment

by:Seven price
ID: 40214762
not sure how to deserialization of an array.
is there anyway to pass it.
name : value, name:value, name: value?
0
 
LVL 9

Author Comment

by:Seven price
ID: 40215193
Ok but if a text box is blank i do not want that value to even become a string.
0
 
LVL 9

Author Closing Comment

by:Seven price
ID: 40215200
thanks
0
 
LVL 58

Expert Comment

by:Gary
ID: 40215710
You had a couple of questions, I guess all sorted since you have accepted the comment?
0

Featured Post

Technology Partners: 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…
Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
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)
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

752 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