The title says it all, i want to display a drop down once user/operator select a option from dropdown menu.
Found so many snippets/scripts on google but could not integrate them with my current script.

i am generating multiple dropdown with a click of a button,i want to display a new dropdown in front of them once user/operator selects a option.
PHP Code:
<script type="text/javascript">
$(
document).ready(function(){
var 
counter_debit 1;
 
    $(
"#addButton_debit").click(function () {
    if(
counter_debit>4){
            
alert("Only 4 textboxes allow");
            return 
false;
    }    
    var 
newTextBoxDiv = $(document.createElement("div"))
         .
attr("id""TextBoxDiv" counter_debit);
        
newTextBoxDiv.after().html("<select style=margin-left:100px required name=debit_register_" counter_debit ">OPTIONS HERE</select>");
    
newTextBoxDiv.appendTo("#DebitBox");
    
counter_debit++;
     });
</script>


<div id='DebitBox'></div>