I'm currently working with a web application using HTML, CSS and PHP. But, I want to know how to pass a text-box value to the comb-box. The HTML code section is copied below. Also, combo-box values are fetched from the database.
HTML
<form method="post">
    <div class="form-group">
        <label for="text">Item Name</label>
        <select class="form-control show-tick" name="ItemName" id="ItemName" required>
          <option value="">Please select</option>
        </select><br>
        <div>
            <table>
                <tr>
                    <td style=" border: 7px solid transparent"><label for="text">Add Item Name : </label></td>
                    <td style=" border: 5px solid transparent"><input type="text" name="name" id="name"  class="form-control" > </td>
                    <td style=" border: 5px solid transparent"><button type="submit" class="btn btn-info">Add</button></td>
                </tr>
            </table>
        </div>
    </div>
</form>
 
     
     
    