1

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?

SatyaTNV
  • 4,137
  • 3
  • 15
  • 31
Sergei Podlipaev
  • 1,331
  • 1
  • 14
  • 34

0 Answers0