Hi,
How do you reset a select box on the click of a button? I have tried the following JavaScript:
Apperyio('CustomerStatus').empty().selectmenu('refresh');
but it clears the items from the Select Box, leaving just a blank useless select box, not reseting it to how it is on page load.
I have also tried
Apperyio('CustomerStatus').val('0'); (and i've tried value of 1 also)
to reset the select box to the original value, but that doesn't work either
My Box has two options, Customer and Prospect.
Can someone give me an example please.
Any help appreciated