How can I link data to a select element in AJAX method?
问题 I have a problem wherein I cannot put the data inside select element and make an option using the ID to append on what is inside my ajax. I got the data and it is showing in an input element but when I switched it into select element it doesn't work. Here is the image of my form JQuery / Ajax code function ToolsChange(element) { let tools_id = $(element).val(); if (tools_id) { $.ajax({ type: "post", url: "form_JSON_approach.php", data: { "tools_id": tools_id }, success: function(response) {