if($.trim($("#inputid").val()) == "")
<input type="text" id="inputid"/>
<script type="text/javascript">
$(document).ready(function () {
$("#inputid").blur(function () {
if ($.trim($("#inputid").val()) == "") {
alert("Enter text");
}
});
});
</script>