- $(document).ready ->
- unless $.browser.opera
- $("select.option_id").each ->
- title = $(this).attr("title")
- title = $("option:selected", this).text() unless $("option:selected", this).val() is ""
- $(this).css(
- "z-index": 10
- opacity: 0
- "-khtml-appearance": "none"
- ).after("<span class=\"select\">" + title + "</span>").change ->
- val = $("option:selected", this).text()
- $(this).next().text val