xxxxxxxxxx
BY LOVE
$("#Id option:selected").text()
xxxxxxxxxx
// Get the selected text from the dropdown
const selectedText = $("select option:selected").text();
// Print the selected text
console.log(selectedText);
xxxxxxxxxx
// Getting the selected option text
var selectedOptionText = $("select option:selected").text();
// Outputting the selected option text
console.log(selectedOptionText);