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
Rameez Javed
NA
395
61.4k
Clear the suggest tag value while cloning the row javascript
Dec 11 2019 1:54 AM
Im having an issue regarding my suggest textbox, when i add a new row, all the fields are fine except the suggest tag textbox. Code snippet is as below...
var table = document.getElementById(tableID);
var rowCount = table.rows.length;
var row = table.insertRow(rowCount);
var colCount = table.rows[1].cells.length;
for
(var i = 0; i < colCount; i++) {
var newcell = row.insertCell(i);
newcell.innerHTML = table.rows[1].cells[i].innerHTML;
switch
(newcell.childNodes[0].type) {
case
"text"
:
newcell.childNodes[0].value =
""
;
break
;
case
"checkbox"
:
newcell.childNodes[0].
checked
=
false
;
break
;
case
"select-one"
:
newcell.childNodes[0].selectedIndex = 0;
break
;
}
}
Reply
Answers (
1
)
Two way data binding for controls
Ajax with asp.net Web Api.