Jquery Validation OnBlur of textbox

Jquery Validation OnBlur of textbox

The HTML code-sample

<div class="form-group error">
    <label for="inputEmail3" class="col-sm-4 control-label">Order Number * </label>
    <div class="col-sm-8">
        <input type="text" class="form-control" id="txtOrderNumber" placeholder="OrderNumber">
        <span class="help-block">Required.</span>

The jQuery/JavaScript code-sample

$(function () {
    //Validation for Update devices input.
    $("#txtFormGroup input").blur(function () {

var validateDevice = function () {
    if ($(this).val() == "") {


Hey! I'm Anil Singh. I author this blog. I'm Active Blogger, Programmer. I love learning new technologies, programming, blogging and participating the forum discussions more...
My Blogs - http://code-sample.com and http://code-sample.xyz
My Books - Interview Questions and Answers Books- Get Your Book in 15+ Digital Stores Worldwide..

You Might Also Like
www.code-sample.com/. Powered by Blogger.
ASK Questions