Bind HTML elements (divs, spans, etc...) to text inputs, and set active class for the clicked element.