ITeye博客

jquery

共 6 篇文章

select值和自定义属性取值

第一种取值 $('#select1').find("option:selected").attr("自定义属性") $('#teacher').val() $('#teacher').find("option:selected").text(), 取名称 第二种取值 属性定义的是data-xxx $('#select1').find("option:selected").data("xxx"); $('#teacher').find("option:selected").data("userid")

2018-09-17 10:08 · jquery · JavaScript

webview下的网页的数据在android2.3能正常显示,在2.1-2.2上面不能显示

今天早上刚上班,上面就说了年前弄的东西有问题,在webview下的网页数据在android2.3能正常显示,在2.1-2.2上面不能显示,最后仔细找了下原因发现 var json = window.firstAid123.getFirstAid123(); var phone = window.firstAid123.getPhone(); alert(typeof json); alert(typeof phone); 这段代码里面的变量在 2.3 下面是“ string ”类型,在 2.1-2.2 下面是“ object ”类型,所以导致数据不能在2.1-2.2下面正常显示。 处理办法:…

2012-02-09 13:13 · jquery · js · android · Android · WebView

jqgrid学习之select格式化

[code="java"] [/code] [img]http://dl.iteye.com/upload/attachment/583575/d765cf5b-c72f-3022-bd98-57571f6eff3d.jpg[/img] [img]http://dl.iteye.com/upload/attachment/583577/8df61bbf-3faa-3c27-b304-b4e306bb82bf.jpg[/img] 将数据库记录为0的格式化为“未推荐”, 记录为1的格式化为“已推荐”

2011-11-07 10:28 · jquery · jqgrid · jQuery · jqgrid

jqgrid学习之获取全部数据的id

var rowIds = jQuery("#gridTable").jqGrid('getDataIDs'); var rowIds = $("#gridTable").getDataIDs(); 找了好一会儿不容易, 做个记录。

2011-11-03 11:39 · jquery · js · jQuery · jqgrid

判断checkbox是否选中

if ($("#checkbox2").is(":checked")) { } 做个备忘 老是忘记

2011-08-29 11:14 · jquery

jquery 控件学习dialog位置

$('#modules_div').dialog({ position: [605,0] }); modules_div是那个要显示的层的id position: :其中的lift代表dialog相对左边的距离, top代表相对页面上端的距离,默认的单位是PX

2011-08-26 11:56 · jquery · div · position · dialog