$(
"input"
, $(
"#obj"
).next(
"span"
)).blur(
function
(){
var
_this=$(
this
);
//这里是主要的,我们获取对象的方式如上↑ ;
//因为是个组合Input所以通过这种方式获取对象,并重新定义下面就可以直接用这个对象了。
$(_this).focus();
//给焦点
$(_this).val(
''
);
//测试
});
$(
"input"
, $(
"#obj"
).next(
"span"
)).blur(
function
(){
var
_this=$(
this
);
//这里是主要的,我们获取对象的方式如上↑ ;
//因为是个组合Input所以通过这种方式获取对象,并重新定义下面就可以直接用这个对象了。
$(_this).focus();
//给焦点
$(_this).val(
''
);
//测试
});