Can't print all selected results from a custom select menu in JQM 1.1.1

Can't print all selected results from a custom select menu in JQM 1.1.1

With custom select menus,

I am finding no way to show "all options were selected".  Is there a way with ether javascript or PHP to show what options were selected from a single custom select menu?


This is the code I have in my HTML

  1.     <div id="ordersteak" data-role="fieldcontain">
                <label id="labelsteak" for="select-steaks" class="select">Steak</label>
                <select name="select-steaks" id="select-steaks" multiple="multiple" data-native-menu="false">
                    <option>choose a case of...</option>
                    <option value="newyorkstrip">New York Strip</option>
                    <option value="ribeyesteaks">Rib-Eye Steaks</option>
                    <option value="tbone">T-Bone</option>
                    <option value="sirloinstrips">Sirloin Strips</option>
                    <option value="steakburgers">Steak Burgers</option>
                </select>
                </div>












This is the PHP I am using to print all the options that the user has selected....

  1. $selectsteaks  = $_POST['select-steaks'];
  2.  $nselectsteaks = count($selectsteaks);
                for($i=0; $i < $nselectsteaks; $i++)
                {
                 print($nselectsteaks[$i] . " ");
                }





But my end result only prints the last option in the list (Steak Burgers), even though I checked all boxes in the custom menu.

What more do I need to do to show all options that were selected?

Thanks




*Break through the ice and never look back*