Unable to transfer data. There is a list of cities:
<li><a href="#" id="post_btn">Белгород</a></li> ... <li><a href="#" id="post_btn">Рязань</a></li>
When you click on the link to the server, a post request must be sent containing the city you clicked on. I tried to do this:
<a href="#" onclick='$.post("index.php", {name: "Рязань"});'>Рязань</a>
Does not work. Tell me, please, how to do it.