Look at the code below: Copy the code The code is as follows: < ;meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> TestPage $(document).ready(function() { <br>$("#btn1").unbind('click').removeAttr('onclick').click(function() { <br>alert ('The method has invoked by Jquery.'); <br>}); <br>}); <br>function foo() <br>{ <br>alert('The method has invoked.'); <br>} <br>