0👍
There is no way you can show the user input again after the refresh of the page unless you save it in your database
. If you wish to keep it temporarily, that can be done with the use of something called sessions
, with the help of server side languages like PHP
or local storage
in browser. But this is still of no use in your case where you wish to show vote/like/dislike, which is something you have to show from any device, any time.
Source:stackexchange.com