Reputation: 45
after click the submit button on my form, how do I add the anchor "#work" in the url without reloading the page?
example: www.test.it/#work
i use header('Location: #work');
but refresh my page.
Update:
I use "jessica" solution: I think the page is reloaded
But don't work, ca see here: http://www.substellar.it/ftende/contatti/
I think the page is reloaded
Upvotes: 0
Views: 810
Reputation: 1687
Just add #work to the action in form for it to show up in the link.
<form action = "url#work">
Upvotes: 1