JavaScript How can I remove clone HTML JQuery

I'm just a beginner I want to create button for remove clone but I can't. This is my code but it isn't work. Please help me to know where did I wrong.

PS. Sorry for my poor English

HTML

 <div class="docu">
      <div class="row">
         <div class="col-sm-2"></div>
            <div class="col-lg-7"  id="Freport" name="Freport">
              <div class="input-group">
                <div class="input-group-btn">
                    <select name="tell" id="tell" class="btn btn-default dropdown-toggle">
                        <option value="0"></option>
                        <option value="1"></option>
                        <option value="2"></option>
                        <option value="3"></option>
                    </select>
      </div><!--End row-->

      <input type="text" class="form-control" aria-label="..." placeholder="...">

      </div><!-- /btn-group -->
    </div><!-- /input-group -->

         <div class="col-sm-1">

<button type="submit" id="btnClonereport"><span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span></button>
<button type="submit" id="btnDelreport"><span class="glyphicon glyphicon-minus-sign" aria-hidden="true"></span></button>
</div>

<div id="container4">
</div>

JS This is my script I can clone but I can't remove clone.

<script type="text/javascript">
    $(function () {
        $("#btnClonereport").bind("click", function () {


            var index = $("#container4 select").length + 1;

            //Clone the DropDownList
            var fre = $("#Freport").clone();
            var fre2 = $("#orand").clone();


            //Set the ID and Name
            fre.attr("id", "Freport_" + index);
            fre.attr("name", "Freport_" + index);
            fre2.attr("id", "orand_" + index);
            fre2.attr("name", "orand_" + index);


            //[OPTIONAL] Copy the selected value
            var selectedValue = $("#Freports option:selected").val();
            fre.find("option[value = '" + selectedValue + "']").attr("selected", "selected");
            var selectedValue = $("#orands option:selected").val();
            fre2.find("option[value = '" + selectedValue + "']").attr("selected", "selected");

            //Append to the DIV.


            $("#container4").append(fre2);
            $("#container4").append(fre);
            $("#container4").append("<br /><br />");


        });
        $("#btnDelreport").bind("click", function(){
            $(this).closest("#container4").remove();
    });
    });

</script>
Answer:1

I have a 'Phone Number' field in my web form. I also have a 'hidden' form field which contains a unicode phone icon [&#9742]. Entering a phone number is optional for my site visitors. So... if ...

I have a 'Phone Number' field in my web form. I also have a 'hidden' form field which contains a unicode phone icon [&#9742]. Entering a phone number is optional for my site visitors. So... if ...

  1. passing value to hidden form field jquery
  2. how to get input type hidden value in jquery
  3. pass value to hidden field jquery

If I have something like this: class MyComponent { constructor() { this.interval = Observbale.interval(1000); } } const c = new MyComponent(); const subscription = c.interval.subscribe(() ...

If I have something like this: class MyComponent { constructor() { this.interval = Observbale.interval(1000); } } const c = new MyComponent(); const subscription = c.interval.subscribe(() ...

I have an array which is binded by reference as a model (to handsontable). Let's call it data. At some point I need to recalc it from scratch (let's call a calced new array freshData; it may have a ...

I have an array which is binded by reference as a model (to handsontable). Let's call it data. At some point I need to recalc it from scratch (let's call a calced new array freshData; it may have a ...

  1. what is a national emergency
  2. whatsapp
  3. whataburger
  4. what time is it
  5. what is my ip
  6. what song is this
  7. what is a state of emergency
  8. what is a dry cough
  9. what happens in a national emergency
  10. what is the stafford act
  11. what is a bear market
  12. what does ���� mean
  13. what to watch
  14. what stocks to buy today
  15. whataburger menu
  16. what is the weather
  17. what is rsv
  18. what is gluten
  19. what is pv
  20. what is a boomer

What are the requirements to avoid throwing the "auth/weak-password" error code on the firebase.auth().createUserWithEmailAndPassword(email, password). I would like to show the user the requirements ...

What are the requirements to avoid throwing the "auth/weak-password" error code on the firebase.auth().createUserWithEmailAndPassword(email, password). I would like to show the user the requirements ...

  1. password requirements for ssc
  2. password requirements for instagram
  3. password requirements for windows 10
  4. password requirements for apple id
  5. password requirements for gmail
  6. password requirements for snapchat
  7. password requirements for facebook
  8. password requirements for absher
  9. password requirements for ssc registration
  10. password requirements for netflix
  11. password requirements for spotify
  12. password requirements for ssc chsl
  13. password requirements for hulu
  14. password requirements for paypal
  15. password requirements for psn
  16. password requirements for steam
  17. password requirements for outlook
  18. password requirements for encrypted iphone backup
  19. password requirements for twitter
  20. password requirements for ssc login