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
Saravana Kumar
1.4k
374
6.3k
Get the checked checkbox list order using javascript
Jan 12 2017 2:07 AM
i have one grid with One CheckBox and textbox. i want to get the checkbox checked order in the textbox. My code is shown below. Any one can help me??
function GenerateOrderNo() {
var GridView = document.getElementById('<%=grvbatch.ClientID %>')
var Order;
var cellToCheck;
var cellToAssign;
var count = 0;
if (GridView.rows.length > 0) {
alert(GridView.rows.length);
for (Row = 1; Row < GridView.rows.length; Row++) {
txtOrder = GridView.rows[Row].cells[1].childNodes[Row];
cellToCheck = GridView.rows[Row].cells[0];
if (cellToCheck.childNodes[Row].type == "checkbox") {
if (cellToCheck.childNodes[Row].checked == true) {
// alert("Yes");
Order = Row + 1;
alert(Order);
txtOrder.value = Order;
// alert(Order);
}
else {
txtOrder.value = "";
}
}
}
}
}
</script>
Reply
Answers (
2
)
Generating and Removing TextBox
Hi i need to display pdf documents this flipbook