1、获取选中的值:获取一组radio被选中项的值: var item =
$("input[@name=items]:checked").val();获取select被选中项的文本: var item =
$("select[@name=items] option[@selected]").tex....
分类:
Web程序 时间:
2014-05-01 13:31:03
阅读次数:
482
1、jQuery获取Select元素,并选择的Text和Value: 1.
$("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发 2. var
checkText=$("#select_id").find(.....
分类:
Web程序 时间:
2014-04-30 19:27:58
阅读次数:
555
第一种方法:跳转到当前页:location.href为跳转当前的页面第二种方法:window.open为打开新窗口跳转跳转到新页面:
分类:
其他好文 时间:
2014-04-30 01:56:00
阅读次数:
497
在制作元件package封装,选择package type 封装为Heterogeneous,给元件新定义封装,却在原理图中显示不了。
解决方法:
1、调出如图所示User Property对话框(Option----》Part properties),图中方框中的packGRP为笔者定义属性,却没在原理图中显示。
2、选中新建属性-----点击右侧的Display,如下图所示:
...
分类:
其他好文 时间:
2014-04-29 13:34:21
阅读次数:
364
题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=251
测模版:
#include
#include
#include
#include
#include
#include
using namespace std;
#define ...
分类:
其他好文 时间:
2014-04-29 13:31:21
阅读次数:
542
crontab运行脚本存在两大问题:环境变量和路径,从而导致单独运行脚本没问题,但用crontab运行就报错。1、环境变量
描述问题:crontab: usage error: no arguments permitted after this option
因为crontab不提供环境,所...
分类:
其他好文 时间:
2014-04-29 10:23:47
阅读次数:
370