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
parthasarathy B
NA
927
108.3k
Jquery code doesn't work after SharePoint ListView paging
Nov 21 2018 12:34 AM
Hi all,
I wrote custom onclick event for a class in jquery, i have attached the script with JS link of listview web part.There is default paging in the listview webp part.In first page the click event works perfectly but after navigating to the other pages the click event is not triggering.Any help would be helpful.thanks in advance.Sample code is given below.
$(document).ready(function () {
$(
'.ms-listlink'
).bind(
'onclick'
, function (e) {
var documentURL = $(
this
).attr(
'href'
);
var url =
"https://Test.sharepoint.com/sites/TestSite/SiteAssets/TestPage.aspx?URL="
+ documentURL;
$(
this
).attr(
'href'
, url);
});
});
Reply
Answers (
1
)
SharePoint migration via ShareGate
Checked in but being edited and checked out exclusively to