
jQuery
macrotea
macrotea
展开
-
jquery.extend
<!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><原创 2010-12-31 10:15:59 · 90 阅读 · 0 评论 -
jquery-jExpand-表格操作思路
$(document).ready(function() { //好设计,数据奇偶行操作 //为数据奇数行添加类 $("#dataTable tr:odd").addClass("odd"); $("#dataTable tr:not(.odd)").hide(); //表格导航标题显示 $("#dataTable tr:first-child").show(); ...原创 2010-12-06 21:06:46 · 118 阅读 · 0 评论 -
json与笔记
<script type="text/javascript"> var studentArray=eval("[{name:\"xiao7\",age:15},{name:\"tea\",age:66}]"); //alert(studentArray) $(document).ready(function() { /* $.ajax({ url:...原创 2010-12-06 09:41:13 · 86 阅读 · 0 评论 -
jquery.validate-摘录
accept说明:<input type="file" id="avatar" name="avatar" class="{validate:{required:true,accept:true}}" />accept接受的是:image (png, jpg, jpeg, gif)<input type="file" id="cv&quo原创 2010-12-04 10:11:07 · 88 阅读 · 0 评论 -
jquery.validate-选与反选思路
//code to hide topic selection, disable for demo var newsletter = $("#newsletter"); // newsletter topics are optional, hide at first var inital = newsletter.is(":checked"); alert(inital) va...原创 2010-12-04 09:41:34 · 97 阅读 · 0 评论 -
jQuery.validity表单校验
jQuery.validity表单校验<!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">...原创 2010-11-18 09:58:11 · 549 阅读 · 0 评论 -
jQuery-事件
1.$(function(){ });2.$(function(){ $("#result").append("macrotea");});3. $(document).ready(function() { $("#username").bind("click",function() { $(this).val(""); }); ...原创 2010-11-15 22:50:59 · 80 阅读 · 0 评论 -
jQuery-动手篇
<body>一.基本选择器1.ID选择器:$("#temp").addClass("bgred");2.类选择器:$(".temp").addClass("bgred");3.合选择器:$("#temp,#test").addClass("bgred");二.层次选择器:1.后代选择器:$("form label").原创 2010-11-14 16:14:02 · 85 阅读 · 0 评论 -
jquery-动态样式表格
$(document).ready(function() { $("#dataTable tr:odd").addClass("bgred"); $("#dataTable tr:even").addClass("bggreen"); $("#dataTable tr").mouseover(function() { $(this).addClass("bgwhit.原创 2010-11-14 15:50:41 · 107 阅读 · 0 评论 -
jQuery-选择器与滤镜
一.基本选择器1.ID选择器:$("#temp").addClass("bgred");2.类选择器:$(".temp").addClass("bgred");3.合选择器:$("#temp,#test").addClass("bgred");二.层次选择器:1.后代选择器:$("form label").addClass("bgred&q原创 2010-11-14 09:57:58 · 154 阅读 · 0 评论 -
jQuery-hide()和remove()
<script> for (var i = 0; i < 5; i++) { $("<div>").appendTo(document.body); } $("div").click(function () { $(this).hide(2000, function () { $(this)....原创 2010-11-13 20:17:54 · 129 阅读 · 0 评论 -
jQuery-各种hide()
<!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> &原创 2010-11-13 20:15:58 · 102 阅读 · 0 评论 -
jQuery-为元素添加样式
<!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><原创 2010-11-13 20:12:19 · 87 阅读 · 0 评论 -
jQuery-取消默认行为
<script type="text/javascript"> $(document).ready(function() { $("#link").click(function(event) { alert("不再转到jquery.com"); event.preventDefault(); }); });</script> ...原创 2010-11-13 20:11:16 · 122 阅读 · 0 评论 -
检测网站是否使用jquery库
在地址栏输入: javascript:(function(){$("img").hide("show");})()javascript:if(window.jQuery)alert("macrotea")原创 2011-03-10 12:32:22 · 204 阅读 · 0 评论 -
MyEclipse8.5配置jQuery插件-Spket
1.专业不说废话 先装Spket 2. 配置jquery 3.看到这样的画面,你比我更兴奋 4.spket1.6只是支持jquery1.3.2我为了方便也把1.4.3放进来了,其实我不想教坏你 ...原创 2010-10-24 13:41:06 · 104 阅读 · 0 评论 -
为Dw CS5安装jQuery代码提示扩展插件
1.下载的附件有说明 1.把shared、Extensions、codehints三个文件夹复制到一下路径即可 WinXP:C:\Documents and Settings\Administrator\Application Data\Adobe\Dreamweaver CS5\zh_CN\Configurationwin7:C:\Users\Administrato...原创 2010-10-24 13:22:37 · 189 阅读 · 0 评论 -
jQuery一句话实现多选框全选/取消
<!DOCTYPE Html><html> <head> <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.4.min.js"></script> <script type=&q原创 2011-01-11 21:50:45 · 115 阅读 · 0 评论 -
jquery插件集合
1. Custom Animation Banner with jQuery通过使用 jQuery Easing和jQuery 2D Transform插件,创建自定义animation banner。View Demo(查看示例) 2. 快速反馈表 – jQuery & PHPMartin Angelov 将教你...原创 2010-12-07 23:14:18 · 86 阅读 · 0 评论