87,923
社区成员
发帖
与我相关
我的任务
分享
<input type="text" value="" id="get" onFocus="WdatePicker({disabledDays:[<?=$strdoctortime;?>]})"/> />
<select id="orz">
<option value="1">111</option>
<option value="2">222</option>
<option value="3">333</option>
</select>
<script>
$("#orz").change(function(){
$("#get").val($(this).val());
});
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
</head>
<body>
<input type="text" value="" id="get" />
<select id="orz">
<option value="1">111</option>
<option value="2">222</option>
<option value="3">333</option>
</select>
<script>
function WdatePicker(o) {
$("body").append(o.disabledDays);
}
$("#get").focus( function() {
WdatePicker({disabledDays: $("#orz").val()});
});
</script>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
</head>
<body>
<select id="orz">
<option value="1">111</option>
<option value="2">222</option>
<option value="3">333</option>
</select>
<input type="text" value="" id="get" onFocus="WdatePicker({disabledDays:[]})" />
<script type="text/javascript">
//换个思路
$("#get").focus( function() {
WdatePicker({disabledDays: $("#orz").val()});
});
</script>
</body>
</html>
<input type="text" value="" id="get" />
<script type="text/javascript">
//换个思路
$("#get").focus( function() {
WdatePicker({disabledDays: $("#orz").val()});
});
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
</head>
<body>
<input type="text" value="" id="get" onFocus="WdatePicker({disabledDays:[]})"/>
<select id="orz">
<option value="1">111</option>
<option value="2">222</option>
<option value="3">333</option>
</select>
<script>
$("#orz").change(function(){
$("#get").attr("onfocus", "WdatePicker({disabledDays:" + $(this).val() + "})");
});
</script>
</body>
</html>
$("#orz").change(function(){
$("#get").attr("onfocus", "WdatePicker({disabledDays:" + $(this).val() + "})");
});