@B-shan Only replying to this because of the confusing downvote. The posted solution works just fine and only returns the HTML of the selected option, not all HTML associated with that ID (as you mention). This fiddle is evidence of it - jsfiddle.net/jomanlk/kcWQw/7 . User Archangel's comment doesn't change anything in the solution as it's functionally the same solution.
↧