use the onmouseup property with each element of the parameter. it is verbose, but should work. also, depending on what your function actually does, you can arrange things a little differently, assuming that the number is important in the handler:
<select> <option onmouseup="handler()" value="1">1</option> //get selected element in handler <option onmouseup="handler(2)" value="2">2</option> //explicitly send the value as argument <option onmouseup="handler(this.value)" value="3">3</option> //same as above, but using the element value property and allowing for dynamic option value. you could also send "this.innerHTML" or "this.textContent" to the handler, making option value unnecessary </select>
eamyx Aug 28 '13 at 6:10 2013-08-28 06:10
source share