Query String Link With Anchor Tag Not Working on Same Page
I have created a store/franchise locator page here. Once users click Contact Franchise on the locator, the franchise name is passed to the form underneath.
The query string looks like this webpage/?selected-franchise=Franchise%20Name
When I add the anchor to the form (webpage/?selected-franchise=Franchise%20Name#form), it works when you are coming from another page/open in a new window but when clicked on while on the same page, the page anchors down but does not refresh and pass on the Franchise name to the first form field.
Any advice on how to best approach this?
Topic query-string jquery hooks Wordpress
Category Web