How is it possible to jump to an anchor tag on the same page after submitting a form with live view. E.g. in a live view file (…html.leex) I have a form like
<%= f = form_for @changeset, "#", [phx_submit: :save] %>
<label class="w3-text-grey" style="padding-left:8px;">Name</label>
<%= text_input f, :name, [class: "w3-input w3-hover-light-grey"] %>
<%= error_tag f, :name %>
<%= submit "Save", phx_disable_with: "Saving..." %>
</form>
and an anchor like
<h1 id="myanchor">Headline 1</h1>
How can I jump to this anchor after submitting the form? I tried to replace “#” in the form header with “#myanchor” but this is not working.
Any suggestions or ideas? Thx.