jQuery修改Button的值

前言

    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>

猜你喜欢

转载自blog.csdn.net/a4171175/article/details/80451611