here is my code of jquery ...
i want to validate a text field for numeric value. if invalid then focus same text field again and agian ..
$('#price').blur(function(){
if($(this).val() !='Preço em USD' && isNaN($(this).val()))
{
alert("Enter Integer only ...");
$('#price').focus();
}
});
i want to set #price focus if its not an integer... i have used $(this) etc also but still not working
Thanks in Advance ...