前言
jQuery的修改Buttion的值使用text函数。
运用
<html> <head> <script type="text/javascript" src="./jq/jquery.js"></script> <script type="text/javascript"> $(function(){ $("#bt").click(function(){ $(this).val("updateBt"); }); }); </script> </head> <body> <button type="button" id="bt">Click me</button> </body> </html>