Just for kicks and giggles, I put the SELECT .* into SQL Server and it gave me Invalid column prefix '': No table name specified - you can, however, use a table alias so that it's SELECT a.*, [column list from table b] with a proper JOIN.
Now, doSomething() only gets triggered when the selection changes. I want to trigger doSomething() when the user selects any option, possibly the same one again. I have tried using an "onClick" handler, but that gets triggered before the user starts the selection process. So, is there a way to trigger a function on every select by the user? Update: The answer suggested by Darryl seemed to work ...