Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
my problem is simple
1.iwill select a item in dropdown to delete

2. after selection i will click the delete button

3.immediately the jquerymodal confirmation box will appear with delete and cancel option

4. if i click the delete option thenonly the selected dropdown item should delete in ddl list as well as in database



code

C#
<script>
             $(document).ready(function () {

                $("#<%=btndlt.ClientID%>").click(function (e){

                    if ($("#<%=ddlbus.ClientID%>").val() == "") {
                   
                      e.preventDefault();

                      $("#jqselect").dialog();
                    }
                  else {

                

                      $("#jqdialog").dialog({
                          autoopen:false,
                          modal: true,
                          resizable: false,
                          draggable: false,
                          buttons: {
                              "Delete all items": function () {

// problem is here how to delete the seleted item (ie) how to submit the master page form
                              },
                              Cancel: function () {
                                  $(this).dialog("close");
                                  return false;
                              }
                          }
                 });

                    }

                });
           });
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900