Delete Pop up not working

Delete Pop up not working

Hello All ,

how do I make the below codes work in Jquery mobile ?    

<script>
    $(document).ready(function(){
        $("#delete-form").submit(function(event){
            if (!confirm("Are you sure you want to delete?")){
                event.preventDefault();
                return false;
            }
        });
    });
    </script>

I want to create a pop up box for the mobile UI.