I have a bootstrap pop-up form to add kingdom name it will appear when we select Add New option from the Kingdom list, I would like to show the newly added value in the list just after closing the popup window. My current code is given below. But It's not working. Please help.
That's how you append an option to select tag
//...
$('#kingdom_nameerr').html('Saved successfully');
$('#yourSelectIDonPage').append('<option value="'+someOptionID+'">'+optionSelected+'</option>');
//...