Hi All,
In my View I have the following:
on initial view both listboxes display my data correctly. My problem is moving the values between the 2.Code:<td>@Html.ListBox("Available", new MultiSelectList(Model.AvailableFloatingZones, "PolicyZoneID", "FullAddress"))</td> <td><input type="submit" name="add" id="add" value=">>" /><br /><input type="submit" name="remove" id="remove" value="<<" /></td> <td>@Html.ListBox("UnAvailable", new MultiSelectList(Model.AllocatedFloatingZones, "PolicyZoneID", "FullAddress"))</td>
In my JQuery for the buttons I have code in the form:
when I click the buttons they do go into the click event, but the appendTo does not work.Code:$("#add").click(function (e) { $('#Available > option:selected').appendTo('#Unavailable'); e.preventDefault(); });
Can anybody make any suggestions. thanks




Reply With Quote