I have 2 html button named Button1 and Button2.
The two button performs same operation using jquery.
now i wrote the same jquery in click event of both buttons.thats shown below
$('#Button1').click(function () {
xyz //some jquery
})
$('#Button2').click(function () {
xyz //some jquery
})
The both jquery are same. Can i catch the click event of both button in single function?