No-Library (pure JS), HTML, CSS, JavaScript
Select Input based on the Details element
jQuery 1.10.1, HTML, CSS, JavaScript