I was looking for a way to open select / combobox by clicking another item. I read the answers saying this is not possible, but ... How does facebook work?
In your facebook timeline, when you want to change the status date, there is ahchor, and when you click on it, a combo box appears. I thought they applied styles to their choice to make it look like an anchor, but it wasn’t.
Their HTML code has an anchor and a selection element, the latter is hidden. Then I know that the select element is positioned as absolute, but I cannot get from my javascript code how it works.
I tried to simulate this as
$('#element').click(); document.getElementById('element').click();
None of this is happening. I saw a script that duplicated the SELECT element, but it added 2 attributes to it: several and size. This changes the look of the selection.
I would like to know how is this possible? I know maybe this will not work in IE <9.
source share