Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
.input-notification {
                background-position: left 2px;
                background-repeat: no-repeat;
                padding: 2px 0 2px 22px;
                background-color: transparent;
                /* margin: 0 0 0 5px; */
                }
                
.error {
                background: #ffcece url('images/icons/cross_circle.png');
                border-color: #df8f8f;
                color: #665252;
                }
                
                
 
// validate form
var validateForm = $("#clientUpdateForm").validate(
{
    errorElement: "span",
    errorClass: "input-notification error png_bg",
    rules: 
    { 
        "client[first_name]": { required: true},
        "client[last_name]": { required: true}
    },
    submitHandler: function(form) 
    { 
        $(form).ajaxSubmit({ 
                url: "?id=update",
            beforeSubmit: function()
            {
                blockScreen('Please wait, updating...');
            },
            success: function(responseText, statusText) 
            {
                $.unblockUI();
                blockScreen('Information was updated.');
                setTimeout(jQuery.unblockUI, 1500); 
            }
        })
    }
}) // end FORM VALIDATION
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers