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
Ayesha Fathima
NA
184
30.1k
Get second Column value,When user clicks on First column Val
Feb 6 2018 4:38 AM
i have one table which contains two column i.e, 'File name' and 'Base64'.Onclick of table iam giving hyperlink on 'File name' column.If i have 3 tuples,the tuple on which user clicked that file name and base64 values i need to get.Iam able to get 'File name' value,but not able to get that base 64 column value,i hided Base64 column in table.How can i achieve base64 column value??
Here what i have tried.in data iam getting file name
$(
'#attachmenttable'
).on(
'click'
,
function
(e)
{
e = e || window.event;
var
data = [];
var
target = e.srcElement || e.target;
while
(target && target.nodeName !==
"TR"
) {
target = target.parentNode;
}
if
(target) {
var
cells = target.getElementsByTagName(
"td"
);
for
(
var
i = 0; i < cells.length; i++) {
data.push(cells[i].innerText);
}
}
alert(data);
Reply
Answers (
0
)
How to add comma to separate numbers - JavaScript
Refresh Data table with new data set