摘要: 根据属性获得元素1.比如要获取页面p标签中属性有id的元素$("p[id]").css("color","red");根据属性值获得元素1.$。在jQuery 中$("<span>"),这个语法等同于$(document.createElement("span")) ,这是一种用法,在选择元素的时候还会这样子的用:[attribute$=value],匹配给定的属性是以某些值结尾的元素。下面举个例子来说明一下:HTML代码<input name="newsletter 阅读全文
posted @ 2012-11-19 11:56 ishibin 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 官网地址:http://bassistance.de/jquery-plugins/jquery-plugin-validationjQuery plugin: Validation 使用说明转载自:http://blog.sina.com.cn/s/blog_608475eb0100h3h1.html一导入js库<script src="../js/jquery.js" type="text/javascript"></script><script src="../js/jquery.validate.js&qu 阅读全文
posted @ 2012-11-19 11:33 ishibin 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 1. JS中取得Asp.Net的值(1)取得服务端控件的值var s = document.getElementById("TextBox1").value; //取得TextBox1的Text值(2)取得全局变量的值在Page_Load()方法前定义protected String sT;在Page_Load()方法中赋值sT = "哈哈";JS中这样写取得var s = "<%=sT %>";---------------------------------------------------------------- 阅读全文
posted @ 2012-11-19 10:31 ishibin 阅读(223) 评论(0) 推荐(0) 编辑