文本框显示来自Ajax的值

Using PHP, Ajax and Jquery, I'm able to create a cascading dependent drop down menu. But I want to have the third drop down to be a text box instead.

How can I do this?

Ajax Code PHP code...

<?php
    include('conn.php');
     $query = $con->query("SELECT * FROM job_category group by category_name ");
    $rowCount = $query->num_rows;
    ?>

    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
    Category:
    <select name="category" id="category">
        <option value="">Select Category</option>
        <?php
        if($rowCount > 0){
            while($row = $query->fetch_assoc()){ 
                echo '<option value="'.$row['category_num'].'">'.$row['category_name'].'</option>';
            }
        }else{
            echo '<option value="">Country not available</option>';
        }
        ?>
    </select>

    <br>
    &nbsp;&nbsp;Sub-Category:
    <select name="sub_type" id="sub_type">
    </select>
    <br>

  &nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;Priority:
   <select name="priority" id="priority_level" >

  </select>
 ?>

Please help, I'm having a hard time on this.