嘿家伙我想在我的网页上设置一个日期选择器,并禁用它的一些日期,所以它不能显示
这是代码:
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Untitled Document</title>
<link href="jquery-ui/jquery-ui.css" rel="stylesheet">
<script src="jquery-ui/external/jquery/jquery.js" ></script>
<script src="jquery-ui/jquery-ui.js"></script>
<script>
/** Days to be disabled as an array */
var disableddates = ["20-5-2015", "12-11-2014", "12-25-2014", "12-20-2014"];
function DisableSpecificDates(date) {
var m = date.getMonth();
var d = date.getDate();
var y = date.getFullYear();
// First convert the date in to the mm-dd-yyyy format
// Take note that we will increment the month count by 1
var currentdate = (m + 1) + '-' …Run Code Online (Sandbox Code Playgroud) 我有这段代码应该执行以下操作:
输入每个输入字段并按" 添加行 "按钮后,应在表的末尾添加一个新行.按" 删除行 "按钮应删除创建的最后一行.
此时,当我按下任何按钮时,它将不会执行任何操作.
作为一个提及,当我验证Chromes的控制台是否存在任何JS错误时,我得到了这个:
未捕获的ReferenceError:$未定义
这是HTML:
<body style="background-color:lavender">
<div class="container">
<div class="row clearfix">
<div class="col-md-12 column">
<table class="table table-bordered table-hover" id="tab_logic">
<thead>
<tr >
<th class="text-center">
#
</th>
<th class="text-center">
User
</th>
<th class="text-center">
Password
</th>
<th class="text-center">
IP
</th>
<th class="text-center">
Country
</th>
<th class="text-center">
IP disponibility
</th>
</tr>
</thead>
<tbody>
<tr id='addr0'>
<td>
1
</td>
<td>
<input type="text" name='user0' placeholder='User' class="form-control"/>
</td>
<td>
<input type="text" name='pass0' …Run Code Online (Sandbox Code Playgroud)