jquery modal not getting selected value from asp drop down list

I am using jquery simple modal.\[code\]function showCancelledModal() { $('#<%=CancelledPanel.ClientID %>').modal({ appendTo: 'form' });}<asp:Panel ID="CancelledPanel" runat="server" Style="display: none"> <asp:DropDownList ID="CancelledDropDownList" runat="server"></asp:DropDownList> <asp:Button ID="CancelButton" runat="server" Text="Cancel" OnClick="CancelButton_Click" /></asp:Panel>protected void CancelButton_Click(object sender, EventArgs e){ var item = CancelledDropDownList.SelectedItem.Value; //CancelReservation(strReservationId); }\[/code\]The problem is, on my button click event it doesn't seem to get the selected value of the drop down list. It just defaults to the first value every time. I am binding the drop down list to a table in the page load event. Can anyone offer any suggestions?
 
Back
Top