本文介绍了隐藏验证错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里的问题是,对于datetimepickers,验证工作正常,但是单击重置"按钮时必须隐藏虚拟化怎么办?小提琴: http://jsbin.com/ufimom/167/edit 代码

Here issue is validation is working fine for datetimepickers but while click reset button valaidation is must hide how to do? fiddle:http://jsbin.com/ufimom/167/edit code

    $("#clear").click(function(){
    $("#datetimepicker").find("span.k-tooltip").hide();
    $("#datetimepicker1").find("span.k-tooltip").hide();
    });

推荐答案

Sandeep,请尝试一下.

Sandeep, Try this..

$("#clear").click(function(){
 $("#datetimepicker").siblings("span.k-tooltip-validation").hide();
 $("#datetimepicker1").siblings("span.k-tooltip-validation").hide();
});

它工作正常. jsfiddle http://jsbin.com/ufimom/172/edit

Its work fine. jsfiddle http://jsbin.com/ufimom/172/edit

这篇关于隐藏验证错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 05:35