<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.advanced{
display:none;
padding: 3px;
border: 1px solid #ccc;
width: 300px;
}
</style>
<script src="js/jquery.min.js"></script>
<script language="JavaScript" type="text/javascript">
$(document).ready(function () {
$('.advanced-search').bind('click',function () {
$('.advanced').slideToggle();
});
});
</script>
</head>
<body>
<div id="search">
<h1>Johnnoy Sumop</h1>
<input type="text" width="60"/>
<input type="submit" value="search"/><br/>
<a href="#" class="advanced-search">Advanced Search</a>
<div class="advanced">
<input type="radio" name="category"/>Cload<br/>
<input type="radio" name="category"/>fdgCload<br/>
<input type="checkbox" name="sale"/>yhgClhgoad<br/>
</div>
</div>
</body>
</html>
jquery学习笔记(二)
最新推荐文章于 2024-01-20 21:49:50 发布