
jquery
久梦歌行
欢迎关注公众号:蜜蜂技术巢
展开
-
jquery获取提交的值
<%@ page language="java" contentType="text/html; charset=gbk" pageEncoding="gbk"%>first jquery$(document).ready(function(){ $("button").click(function(){ alert("Value: "+$("#test").val转载 2014-08-22 10:06:00 · 628 阅读 · 0 评论 -
jquery中文日期控件演示
下载地址:点击打开链接原创 2014-10-04 17:39:16 · 732 阅读 · 0 评论 -
jquery选择除什么元素之外的实例
not choose $(function(){ $("#fuor").click(function(){ $(".qq").not("#tow").val("111"); }) });原创 2014-09-03 20:36:37 · 4718 阅读 · 0 评论 -
jquery中的冒泡事件
bubbling event var n = 0; $(document).ready(function(){ $("div,#button").click(function(event){ n++; $("#show").html("The number is :" +n); }) });原创 2014-09-03 19:59:40 · 585 阅读 · 0 评论 -
jquery解析json
json name---score $(function(){ var jsonStu= [ {"name":"xiaoming","score":"80"}, {"name":"xiaoli","score":"85"}, {"name":"xiaohang","score":"91"} ];原创 2014-09-16 10:45:28 · 590 阅读 · 0 评论 -
jquery选择多个元素
sele1,sele2,seleN选择器 选我吧!我是red 选我吧!我是green 选我吧!我是blue $(".red,.green").html("hi,我们的样子很美哦!");多个元素中间用,I always like walking in the rain,so no one can sen me crying.转载 2014-09-02 22:32:51 · 893 阅读 · 0 评论 -
jquery列表隐藏和出现练习
change function change(){ if($("a").html()=="更多"){ $("a").html("简化"); $("li").show(); }else{ $("a").html("更多"); $("li.ch").hide(); } } 1 2 3 4 5 6 7 更多原创 2014-09-11 09:50:17 · 619 阅读 · 0 评论 -
jquery使用each方法遍历元素
使用each()方法遍历元素 .red { background-color: Red; } 使用each()方法遍历元素 香蕉 桃子 葡萄 荔枝 var ar = []; $("span").each(function (index) { ar.push($(this)原创 2014-09-11 15:51:49 · 3010 阅读 · 0 评论 -
jquery中append()向元素内追加元素
append()方法追加内容 append()方法追加内容 function rethtml() { var $html = "我是调用函数创建的" return $html; } function showWord(){ $("body").原创 2014-09-11 12:11:37 · 5979 阅读 · 0 评论 -
jQuery获取属性里含有某一内容的方式
[attribute*=value]属性选择器 改变"title"属性值包含"果"的背景色 茄子 香蕉 芹菜 小西红柿 西瓜 $("li[title*='果']").css("background-color", "green");转载 2014-09-10 14:19:26 · 1908 阅读 · 0 评论 -
jQuery制作双色表格
Insert title here$(document).ready(function(){ $(".stripe tr").mouseover(function(){ $(this).addClass("over"); }).mouseout(function(){ $(this).removeClass("over"); }) $(".stripe tr:even").a转载 2014-08-26 23:33:53 · 918 阅读 · 0 评论 -
jquery实现浏览器滚动加载
var totalheight = 0; $(function(){ $(window).bind("scroll", function(){ totalheight = $(window).height() +$(window).scrollTop(); //浏览器的高度加上滚动条的高度 if (($(document).height()*9/1原创 2015-03-03 10:37:19 · 689 阅读 · 0 评论