tags:

views:

45

answers:

2

Dear all

I am newbie to jQuery and loves it

Can any one give me a small jQuery code snippet to Show an alert/Div when a button (with id btnSave ) being clicked .

+1  A: 

Thats exactly what you are looking for: http://www.learningjquery.com/2008/03/working-with-events-part-1

Mork0075
A: 


      $(document).ready(function(){
          $("#btnSave").click(function(){
             //alert("clicked");
             // or
            $("#otherDivId").show();
          });   
      });