D
D
dearname2015-08-15 23:11:08
PHP
dearname, 2015-08-15 23:11:08

Displaying the latest news in a category on the same page as the link to this category?

Displaying the latest news in a category on the same page as the link to this category in DLE? There is a page where categories are displayed, so when you click on a category, do not go to a new page, but draw the output directly on this page in some DIV. How can this be done and is it possible?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilyas Galiev, 2015-08-16
@MrGaliev

Add an id and a class to the category
You hang up the handler

$('.category-link').click(function() {
...
});

By this id, you get the news from the database and add it to some div

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question