深海的小鱼儿

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2011年6月26日

摘要: jQuery获取Select选择的Text和Value: 请选择 C# Javascript jQuery C++ Java VB 选择一项试试看 语法解释: 1. $("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发 2. var checkText=$("#select_id").find("option... 阅读全文
posted @ 2011-06-26 18:16 深海的小鱼儿 阅读(478) 评论(0) 推荐(0) 编辑

摘要: 1: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2: <html xmlns="http://www.w3.org/1999/xhtml"> 3: <head> 4: <meta http-equ... 阅读全文
posted @ 2011-06-26 18:14 深海的小鱼儿 阅读(731) 评论(0) 推荐(0) 编辑

摘要: 判断第几个选中 if ('${da1}' == 1) { document.forms[0].selZqda.options[1].selected = true; } if ('${da2}' == 2) { document.forms[0].selZqda.options[2].selected = true; } 自动添加值 function ajaxArea(){ id=docume... 阅读全文
posted @ 2011-06-26 18:12 深海的小鱼儿 阅读(3591) 评论(0) 推荐(0) 编辑