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);