function changeAction(){
var strValue = $("#linkurl").val();
strValue=strValue.replace(/\n/g,'');
if(strValue.trim()==""){
$(".btnSelectVideo").removeAttr("disabled");
}else{
$(".btnSelectVideo").attr("disabled",true);
}
}
1、input的onblur事件:
<sf:input maxleng="100" type="text" path="linkurl" οnblur="changeAction()" placeholder="关联url" class="form-control" required="" value="${b004012Bean.linkurl}"/>