I am fairly new to HTML. I am working on an event website, the website requires people to register for events, on the website is a dropdown showing the events currently running, a user can choose an event from the dropdown, when they choose the event from the dropdown, I would like the site to update a field named eventDescription with the event's description. Here is my HTML code
<div class="row form-group">
                        <div class="col-md-12">
                        <select name="event" required="true" class="form-control" style='width:100%'>
                            <option value="" disabled selected>Select the event you registering for</option>
                                <?php foreach ($events as $event) {?>
                                    <option value="<?php echo  $event['id']; ?>"> <?php echo  $event['title']; ?></option>
                                  <?php } ?>
                          </select>
                            </div>
                        </div>
                        <div class="row form-group">
                            <div class="col-md-12">
                                <a class="form-control" id="eventDescription" placeholder="Selected event description"></a>
                            </div>
                        </div>
I am new to HTML I have no idea on how to do this, although I know I can do it with javascript how do I update id="eventDescription" with $event['description'] ?
 
     
    