HPE Anywhere Developer Forum
Showing results for 
Search instead for 
Do you mean 

JQ styled options

Regular Advisor Regular Advisor

JQ styled options

I’m trying to use <select name="myselect" id="myselect" required data-native-menu="false"> to show styled option lists. When the styled options show on the screen and an item is selected, the ‘go back’ function occurs and reloads the HPA application. Anyone have a work around or suggestion to use styled options?

2 REPLIES
Respected Contributor

Re: JQ styled options

Hi Jack,

 

Thank you for contact Hp Anywhere.

 

We forward your question to our R&D departmant and we will do our best to get back to you shortly. 

 

Tamir Verthim

 

 

Tamir Verthim
Highlighted

Re: JQ styled options

Hey Although i still don't know what causes this strange behaviour, here are a couple of options to try that might prevent it: 1. attach a handler to the 'change' event of the list 2. in the handler, you get an object of the event, let's call it 'ev' for now 3. do ev.preventDefault(); 4. do ev.stopPropagation(); 5. do return false from that handler all the above, each desperately and all together tell the browser not to do the default browser behavior, which in your case seem to be a submit. Please let us know if that helped. Thanks Nadav