<!DOCTYPE html>
<html>
    <head>
            $(document).on("click", "#myButton", function() {
                alert("Button was pressed!");
            });
            $(document).ready(function() {
                $("#getBtn").click(function() {
                    alert("Button was pressed!");
                });
            });
        </script>
    </head>
    <body>
       
        <input type = "button" id = "getBtn" value = "btn">
        <button id="myButton">Press Me</button>
    </body>
</html>

왜 안되는거냐 시바?