This question has been asked a few times on Stackoverflow - however I still cant get to the bottom of it... plus my query is throwing more dropdowns into play. So I have two dro
Bootstrap 4 version:
$(".dropdown-item").click(function(){ var selText = $(this).text(); $(this).parents('.dropdown').find('.dropdown-toggle').html(selText+''); });