I have a form with a class of "foo" on my page. I'd like to remove that specific form with the click of a button.
<div onclick="delete_me(foo)">
    <button>Delete</button>
</div>   
<script>
    function delete_me(formname) {
        document.getElementsByClassName(formname).remove();
    }
</script>
When I click the button, nothing happens. Do you know where I've gone wrong?
Thanks!
