I am working on a script that changes the span text value depending on user input in the select menu.
I have a fault with my current script. How do I fix it so when I cl
Like this:
$(function() { $('#usertype').change(function() { let text=$(':selected',this).text(); $(this).next("span").text(text); }); });