Hi,
Please check this code:-
<pre><script type="text/javascript">
function checkTime(id) {
var val = $('#'+id).val();
var t = $('#txtTime1').val();
if (val != "") {
if (val > t) {
}
else {
alert('Please check your value');
}
}
}
</script>
<input type="text" id="txtTime1" />
<input type="text" id="txtTime2" onblur="checkTime(this.id)" />
<input type="text" id="txtTime3" onblur="checkTime(this.id)" />