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
29.9k
Call function on click of column in hyperlink itself
Feb 6 2018 1:24 AM
Hi there,
I am forming table using Ajax,giving hyperlink on one column,onclick of that column i need to call one function.How to call that function while forming hyperlink itself.
$(
'#attachmenttable'
).DataTable( {
retrieve:
true
,
//need to write this line otherwise it wil throw an error like "cannot reinitialize data table"
paging:
false
,
searching:
false
,
data: desired,
columns: [
{ title:
"File Name"
,visible:
true
,
"render"
:
function
( data, type, row ) {
return
'<a href="javascript:void(0)">'
+ data +
'</a>'
;
}},
{ title:
"Base64"
,visible:
false
}
]
} );
Reply
Answers (
2
)
Concat two lists elements and make into separate list.
How to add comma to separate numbers - JavaScript