How can I remove a div from a unique id? I've tried many ways but always fail.
function uniqId() {
return Math.round(new Date().getTime() + (Math.random() * 100));
}
function sklik() {
var dov1 = `<div class="dwnctrl d-flex mt-3" id="` + uniqId() + `">
<input class="form-control mr-2" name="" id="" placeholder="Quality" style="width: 100px;">
<input class="form-control mr-2" name="" id="" placeholder="Link">
<input class="form-control mr-2" name="" id="" placeholder="Server Name" style="width: 150px;">
<button type="button" class="btn toddd" id="post-grab" onclick="rmv()">Remove</button>
</div>`;
$(".frmDowns").after(dov1);
}