[Solved] how to highlight a svg map image based on form

Hamza Nassar Asks: how to highlight a svg map image based on form
am new to coding, i have a form in my website that has a pickup and destination inputs, after the user submits the form it shows a svg map image , i want to highlight the the pickup and destination areas based on what’s in the form through javascript maybe?, i searched for hours for how to do this but all i found is highlighting a map on hover and other useless stuff for me, please help. here’s the form to show what i mean.

<form action="rideHandler.php" method="POST" id="tripinfo">
                 <div id="toFrom">
                      <select name="from" id="from" required >
                          <option value selected disabled>select an area</option>
                          <option value="blahbalh">blahblah</option>
                          //other options

                      <select name="to" id="to" required >
                          <option value selected disabled>select an area</option>
                          <option value="blahblah">blahblah</option>
                           //other options
                   //other irrelevant form inputs
               <button type="submit" class="subBtn" id="show"> Finish up</button>

ideally after submitting it shows a page with the highlighted areas, please help? i don’t want code, i just want the method, how should i do it? and what should i use? should it be through javascript or something else?

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.