[Solved] Want to get drop down value on php sql query without page refresh


Use ajax

$.ajax({
    url: "fetchlist.php",
    dataType: 'json',
    success: function(response){
        // Here, you may bind response with your select HTML
    }
});

You may either return json from your php file and create DOM elements in response. Or, you may create HTML version and return as response. Suggestion will be to use JSON for better flexibility.

solved Want to get drop down value on php sql query without page refresh