Using a bootstrap form to add a printer involves selecting the material and color. The dynamic dropdowns are functioning correctly, but it is necessary to display the selected color for user clarity. Please guide me on how to pass the color along with its respective name from the script so that users can easily see which color they are adding.
https://i.sstatic.net/Poa4P.png
...JavaScript code here...
<?php
...PHP code here...
include '../header.php';
?>
<!DOCTYPE html>
<html>
...HTML content here...