Get values from textboxes
- or -
Post a project like this4077
£10(approx. $13)
- Posted:
- Proposals: 4
- Remote
- #216814
- Awarded
Description
Experience Level: Entry
I am using javascript to add text boxes when I click add button
$(".addButton").on("click", function () {
var newTextBoxDiv = $(document.createElement('div'))
.attr("id", 'TextBoxDiv' + counter);
newTextBoxDiv.html(' Rep' + counter + ' - Distance:' +
' ' +
' ' +
'Miles' +
'Km' +
' ' +
' Min:' +
' ' +
' Sec:' +
'');
newTextBoxDiv.appendTo("#TextBoxesGroup");
counter++;
});
The issue is I'm not really sure how I can loop through them to get the values output and add them into sql database along with the rest of the boxes.
The working code is shown here : http://jarrattperkins.com/training/addtraining.aspx
$(".addButton").on("click", function () {
var newTextBoxDiv = $(document.createElement('div'))
.attr("id", 'TextBoxDiv' + counter);
newTextBoxDiv.html(' Rep' + counter + ' - Distance:' +
' ' +
' ' +
'Miles' +
'Km' +
' ' +
' Min:' +
' ' +
' Sec:' +
'');
newTextBoxDiv.appendTo("#TextBoxesGroup");
counter++;
});
The issue is I'm not really sure how I can loop through them to get the values output and add them into sql database along with the rest of the boxes.
The working code is shown here : http://jarrattperkins.com/training/addtraining.aspx
Jarratt P.
100% (8)Projects Completed
9
Freelancers worked with
9
Projects awarded
59%
Last project
7 Sep 2019
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies