Question: how to get current page path in jquery?
Answer: Answer: Use the syntax $(location). attr("href"); You can use the Location object and jQuery attr() method to get the URL of the current page.