I need to display options present in a select region (allowing multiple select) in form of tree. This tree needs to be collapsible/expandable. I have implemented it such that it looks and works as intended in FF.
- 1 - 1.1 + 1.1.1 - 1.1.2 - 1.1.2.1 - 1.1.2.2 - 1.1.2.3 + 1.1.3
I have achieved this by styling <option>
tag with left padding and a google-like '+' '-' background. The JS for collapsing et al in done using jQuery.
But in IE things look as if no changes had been made and the JS does not work either :|
1 1.1 1.1.1 1.1.2 1.1.2.1 1.1.2.2 1.1.2.3 1.1.3
Does IE not allow attaching padding, backgound etc to <option>
tags? How can I do this differently?
It is not possible to not support this work on IE6. Saving the debate on that for later ;)