SyntaxFix
Write A Post
Hire A Developer
Questions
With less jQuery:
<select name="ddlCodes" onchange="$('#txtEntry2').text(this.options[this.selectedIndex].value);">
this.options[this.selectedIndex].value is plain JavaScript.
this.options[this.selectedIndex].value
(Source: German SelfHTML)