I'm using java+jsp/servlet+jquery making my webapp.
I have a button <button id = "1">My button</button> on my page, that should do 2 actions at the same time : Servlet call and some jquery script action like this: 
<script>
    $(document).ready(function(){
        $("#1").click(function(){
            alert("Mouse click!");
        });
    });
</script>
How can I do this 2 things at the same time?
 
    