I am focusing back textbox if it does not have required values. Textbox is not focusing back after execution of this function. However it is alerting (alert("Must be 1");
) correctly.
$("#textbox").blur(function(event){
if ($(this).text != "1"){
event.preventDefault();
alert("Must be 1");
$(this).focus();
}
});
Any idea ?