jounger / pagination-jquery-plugin

New and Simple Pagination Jquery Plugin for You.
5 stars 1 forks source link

onClick events not working with this version #1

Open ghost opened 4 years ago

ghost commented 4 years ago

Hello, I found your code somewhere on the internet, and I had a problem that took me hours to reverse engineer and solve, the problem was that when it started it didn't activate the first index class (active), it was because the eq() when stated reference a setting attribute "from" that was miswritten and i found it was "page" instead, now, I found the repository and Your code is much more updated and I tried it, but my jquery on click functions don't work, I can't understand why, I have them inside a document-ready function, I don't understand why, that doesn't make sense to show your my code because it's The same with your new version as with the previous one, can you tell me what I'm doing wrong? I just want to get the value of the pager like this next bit, do I have to put them in some order or..?

$("body").on("click", ".page-link", function () { var Id = $(this).text(); });