[Solved] Create a table dynamically , number of row depend of select number


this is the ajax code i used:

Hello,  this is the ajax code i used:
   <script> 
    $(document).ready(function(){ 
    $('#nb_tgbt').change(function(){ 
    var nbretgbt_id = $('#nb_tgbt').val(); 
    if(nbretgbt_id != 0) { 
    $.ajax({ type:'post', url:'getvalue.php', data:{id:nbretgbt_id}, cache:false, success: function(returndata){
  $('#tablename_tgbt').html(returndata); 
    } 
});
} 
}) 
}) 
</script>

solved Create a table dynamically , number of row depend of select number