Support AJAX when attached to a <select> element

Hi,

My change enables all AJAX-related options even when attaching to a "select" element. Options loaded from the server are dynamically added to the original "select" element instead of a separate "div".