TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Kasuni Abegunawardana
NA
211
124.5k
How to update Array and Display in a Table in javascript
May 14 2018 2:36 AM
I have successfully created updating part but I don't know how to display it in a table again
//Update the students
function
EditRecords() {
var
RegNumberText = document.getElementById(
"textboxRegistrationNumber"
);
_students[_selectedStudentIndex].RegNum = RegNumberText.value;
var
FullNameText = document.getElementById(
"textboxfirstname"
);
_students[_selectedStudentIndex].FullName = FullNameText.value;
var
LastNameText = document.getElementById(
"textboxlastname"
);
_students[_selectedStudentIndex].LastName = LastNameText.value;
var
EmailAddressText = document.getElementById(
"textboxemail"
);
_students[_selectedStudentIndex].Email = EmailAddressText.value;
var
PhoneNumberText = document.getElementById(
"textboxphonenumber"
);
_students[_selectedStudentIndex].PhoneNumber = PhoneNumberText.value;
console.log(_students);
}
Reply
Answers (
1
)
How to Delete, Edit array items from Javascript
User Authentication Using Servlet in Java