1

コードがうまく機能しているasp.netでモダンなポップウィンドウを開くためのコードを書きました。しかし、デオプダウンリストからデータを選択してポップウィンドウも開きたいです。これは、ユーザーがボタンをクリックしたときにポップウィンドウを開くためのコードですが、ドロップダウンリストからアイテムを選択してポップアップを開くには、メンバーシップのアップグレードと表示するにはどうすればよいですか。

<asp:DropDownList ID="ddWeek" class="contact-input" runat="server" Width="400px"
        AutoPostBack="True" OnSelectedIndexChanged="ddWeek_SelectedIndexChanged">
            </asp:DropDownList>

      <div id="modal">
    <div id="headingpop2">
        Select You Plane for Upgrade Membership
    </div>
     <div id="contentpop2">
        <p>Select you plan as per you like to Upgrade</p>
        <a runat="server"  href="Becomeamember.aspx"
            class="buttonpop green close" style="margin-top: 140px; margin-right:     
       230px;">
            <img src="images/tick.png">Upgrade Now</a> <a style="margin-top: 140px; 
             margin-right: 50px;"
                href="#" class="buttonpop red close">
             <img src="images/cross.png">Cancel</a>
    </div>
</div>

<script type="text/javascript">
        $(document).ready(function () {
            $('#button1').click(function (e) { // Button which will activate our modal
                $('#modal').reveal({ // The item which will be opened with reveal
                    animation: 'fade',      // fade, fadeAndPop, none
                    animationspeed: 600,  // how fast animtions are
                    closeonbackgroundclick: true, // if you click background 
                     // will modal close?
                    dismissmodalclass: 'close' // the class of a button or 
                   //element that will close an open modal
                });
                return false;
            });
        });    
    </script>

このコードはボタンで動作しますが、ドロップダウンリストでも動作するようにしたいです。どうすればこれを行うことができるか、誰もが私を助けてください。

ありがとうございました

4

0 に答える 0