add custom buttons to select popup in jquery mobile
I am using the jquery Mobile with multiple select option and data-native-menu as false. The default behavior is that the user can select multiple options and on clicking anywhere else on the screen, the values are set. I want to change this. I want to add a button at the bott开发者_运维知识库om of the select popup. Only on click of this button, the values selected should be applied. Any ideas as to how I can achieve this?
It can't be. What you want is changing the UI of mobile devices. That's hardly possible to do for native apps, web apps have no access to these things at all.
What you could try:
- If your app is targeted for specific devices, you can measure the height of the selection-popup.
- Create a toolbar that fits exactly above the popup. Add a button to it (eg. 'Done').
- Add a listener so you get notified when the user presses the 'Done'-button =)!
精彩评论