onClick

get selected value of a select box in Clojure

option onclick Event not Supported With a recent bug I was reminded that <option /> are not allowed to have onClick events by Google Chrome. This led to some annoying debugging as to why something was working in Firefox but not Chrome on one of our applications. Fortunately, Clojure ships with Google Closure, which provides a straight-forward way of obtaining the selected index, and then getting that from the options of the sel.