Prevent page refresh?

You can store the selected info (in session storage or URL query parameters)and bind it to the input elements on refresh.
See storage session Or query params
Either of them should work .