Using MenuOptions select with serialize¶
Pass output of serialize() to re_serialize()¶
See re_serialize demo with documention
in a call like the one below:
$('input#selecttest').menuoptions('re_serialize',$('form').serialize());
Note:
- The selector must be an element that has been initialized with MenuOptions.
- So in the example above, $(‘input#selecttest’) had to have been used initialized with a MenuOptions call (initialization example below).
PayMethod = { 1: "American Express", 2: "Visa", 3: "Mastercard", 4:"Discover", 5:"Check",
6:"PayPal", 7:"Cash", 8:"Money Order"}
$('input#selecttest').menuoptions({
"Data": PayMethod
});