Answer the question
In order to leave comments, you need to log in
How to add a GET request to the URL on an AJAX request?
Hello everyone, when I click on the "News" button, I query the content in the mysql database and everything works fine, but I would like the get parameter to be added when clicking, but I don't know how to do this because the request goes without reloading the page. I need to be able to navigate from any page to the url with this get parameter where the content I need will be displayed.
I may not explain it well, if it's not difficult, go to the site jut.su/anime
There is a button "Select categories" and when you click the content is loaded and + the genre is added to the url field and all this without reloading
Answer the question
In order to leave comments, you need to log in
so that when you click, the get parameter is also added, but I don’t know how to do it because the request goes without reloading the page.History.pushState()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question