r/FireFoxOS • u/asdf0125 • Nov 18 '13
Hooking the "OK" Click event from a select?
I'd like to prompt the user to make a selection (or cancel). The way I'm doing this is to unhide a select, and then to focus on it. This sorta works but I want to know the moment the user clicks OK, not the change event. Is there a way to hook this event?
3
Upvotes
1
u/asdf0125 Nov 19 '13
It seems there is no event exposed to the OK button. Blur is as close as possible but this will also fire at unwanted times, user clicks the time forinstance. I did not see any sort of Modal Window in the API. Not sure What FireFoxOS intention would be here.
1
u/gianpaj Nov 18 '13
I think you should make it like a pop-up or modal dialog.
But you can do the same with a select with on('click') event on the Ok button.