ITeye博客

lushuaiyin的博客

lushuaiyin · 共 1200 篇文章

jQuery给控件赋值....

1.jQuery给span取值:$("#id").html(); 2.jQuery给input取值:$("#id").val(); 3.jQuery给textarea取值:$("#id").val(); 4.jQuery给radio取值(非主创): 今天写Js的时候发现利用jquery取不到radio的当前值,上网Google下,发现网上的解决方案都是依托于1.2版本的,jquery的1.3版本已经去掉的属性选择器@符号。 (1.2)以前的版本对于radio取当前值的方式: $("input[@type=radio][@checked]") 把@去掉发现能得到object,但是取到的当前值不…

2011-12-31 10:11 · 评论(0)

jQuery给控件赋值....

2011-12-31 10:11 · 评论(0)

jquery 根据name属性获取对象(=document.getElementByName("") )

<html> <head> <script type="text/javascript" src="/jquery/jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("input").focus(function(){ $("input").css("background-color","#FFFFCC"); }); $("input").blur(function(){ $("input").css("background-color","#D6D6FF"); var d…

2011-12-30 18:58 · 评论(0)

jquery 根据name属性获取对象(=document.getElementByName("") )

<html> <head> <script type="text/javascript" src="/jquery/jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("input").focus(function(){ $("input").css("background-color","#FFFFCC"); }); $("input").blur(function(){ $("input").css("background-color","#D6D6FF"); var d…

2011-12-30 18:58 · 评论(0)

jquery 根据name属性获取对象(=document.getElementByName("") )

2011-12-30 18:58 · 评论(0)

查询null以及length(),trim()使用

select * from stu_course t -- 产品 select * from stu_course t where t.is_publish='Y' and t.pid is null -- 模块 select t.*,length(trim(t.code)) lengthhh from stu_course t where t.is_publish='Y' and t.pid is not null and length(trim(t.code))>4 -- select * from student s where s.sno= 183 order by --- nvl(…

2011-12-22 21:22 · 评论(0)

查询null以及length(),trim()使用

select * from stu_course t -- 产品 select * from stu_course t where t.is_publish='Y' and t.pid is null -- 模块 select t.*,length(trim(t.code)) lengthhh from stu_course t where t.is_publish='Y' and t.pid is not null and length(trim(t.code))>4 -- select * from student s where s.sno= 183 order by --- nvl(…

2011-12-22 21:22 · 评论(0)

查询null以及length(),trim()使用

2011-12-22 21:22 · 评论(0)

JS解析json数据(如何将json字符串转化为数组)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <SCRIPT LANGUAGE="JavaScript"> var t="{'firstName': 'cyra', 'lastName': 'richardson', 'address': { 'streetAddress': '1 Microsoft way', 'city': 'Redmond', 'state': 'WA', 'postalCode': 98052 },'…

2011-12-22 20:01 · 评论(0)

JS解析json数据(如何将json字符串转化为数组)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <SCRIPT LANGUAGE="JavaScript"> var t="{'firstName': 'cyra', 'lastName': 'richardson', 'address': { 'streetAddress': '1 Microsoft way', 'city': 'Redmond', 'state': 'WA', 'postalCode': 98052 },'…

2011-12-22 20:01 · 评论(0)

JS解析json数据(如何将json字符串转化为数组)

2011-12-22 20:01 · 评论(0)

自己做出来的一个jquery ajax实例,不容易

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib prefix="t" uri="/WEB-INF/templet.tld" %> <%@ taglib prefix="app" uri="/WEB-INF/app.tld" %> <%@ page import="com.ps.user.*" %> <app:jsphelper type="js" src="js/reference.js" /> <app:jsphelper type="js" …

2011-12-16 18:14 · 评论(0)

自己做出来的一个jquery ajax实例,不容易

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib prefix="t" uri="/WEB-INF/templet.tld" %> <%@ taglib prefix="app" uri="/WEB-INF/app.tld" %> <%@ page import="com.ps.user.*" %> <app:jsphelper type="js" src="js/reference.js" /> <app:jsphelper type="js" …

2011-12-16 18:14 · 评论(0)

自己做出来的一个jquery ajax实例,不容易

2011-12-16 18:14 · 评论(0)

js父子窗口传值(只涉及到js的简单例子,没用到框架)

父窗口页面father.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>父窗口 </TITLE> <script language="javascript"> <!-- function openChild(){ var childwin = window.showModalDialog("child.html",window,"dialogWidth:335px;status:no;dialogHeight:300px"); if(childwin != nul…

2011-12-16 15:49 · 评论(0)