The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Check only last page

3 posters

Page 2 of 2 Previous  1, 2

Go down

Solved Check only last page

Post by Guest August 7th 2023, 4:57 pm

First topic message reminder :

Is there a way to look for last post in the thread with jQuery even I am on the first page? In my case, Let's assume I am on any page but last, could I gather info from truly last post in that thread which can be 10 pages ahead? And if it is possible, how can I get access to the info of last post?


Last edited by The Raven on August 9th 2023, 11:05 am; edited 1 time in total
avatar
Guest
Guest


Back to top Go down


Solved Re: Check only last page

Post by Razor12345 August 9th 2023, 11:03 am

In this line, you've mixed two languages - JS and jQuery

Code:
$("#oldTopic").style.disply = 'block';

If you want to use JS, write

Code:
document.querySelector("#oldTopic").style.disply = 'block';

If you want to use jQuery:

Code:
$("#oldTopic").css("display", "block");


Check only last page - Page 2 Screen51
Razor12345
Razor12345
Support Moderator
Support Moderator

Male Posts : 1540
Reputation : 266
Language : Ukr, Rus, Eng
Location : Ukraine

Back to top Go down

Solved Re: Check only last page

Post by Guest August 9th 2023, 11:05 am

Awesome, this works like a charm. Thank you so much! You can make tutorial on this for others because it is very helpful.
avatar
Guest
Guest


Back to top Go down

Solved Re: Check only last page

Post by Razor12345 August 9th 2023, 11:07 am

You are welcome!

Problem solved & topic archived.
Please read our forum rules: ESF General Rules


Check only last page - Page 2 Screen51
Razor12345
Razor12345
Support Moderator
Support Moderator

Male Posts : 1540
Reputation : 266
Language : Ukr, Rus, Eng
Location : Ukraine

Back to top Go down

Page 2 of 2 Previous  1, 2

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum