返回jquery文......登陆

jquery文档就绪语法&基础语法

农夫三锤2019-01-10 17:51:14188
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>jquery基础语法</title>
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js">
    </script>
</head>
<body>
<!-- 文档就绪语法
$(document).ready(function(){
    //jquery code
}) -->


<script>
    $(document).ready(function(){
//表单选择器
$(':enabled').css('background','pink')
    $(':disabled').css('background','blue')
})
</script>

<form action="">
输入框1 <input type="text" name=""><br>
输入框2 <input type="text" name=""><br>
输入框3 <input type="text" name="" disabled><br>
输入框4 <input type="text" name=""><br>



</form>
</body>
</html>


最新手记推荐

• 用composer安装thinkphp框架的步骤• 省市区接口说明• 用thinkphp,后台新增栏目• 管理员添加编辑删除• 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消回复发送