手记

jQuery按钮置灰及恢复

         


<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8"/>

<title>DOM0级添加</title>

<style type="text/css">

input{

height: 20px;

width: 80px;

border: 1px;

}

#addo{

background-color: blue;

}

</style>

<script type="text/javascript">

    function addo(){

    $(function(){

    $('#look').linkbutton("disable");//置灰审核按钮

    });

    }

    function save(){

    $('#look').linkbutton("enable");//开放审核按钮

    }

</script>

</head>

<body>

<input id="addo" type="button" value="新增" onclick="addo()">

<input id="save" type="button" value="保存" onclick="save()">

<input id="look" type="button" value="审核" onclick="look()">

</body>

</html>


0人推荐
随时随地看视频
慕课网APP