Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 1.18 KB

File metadata and controls

37 lines (30 loc) · 1.18 KB

jQuery-Validation-Bootstrap-tooltip

A drop in extension replacing error labels from jQuery Validation plugin with Twitter Bootstrap tooltips

Requirements

Usage

Tooltip options are given either through an element's data attributes or as objects set during validate initializing. An example would be:

    $("#theform").validate({
        rules: {     
           thefield: { digits:true, required: true } 
        },
        tooltip_options: {
           thefield: { placement: 'left' }
        }
     });

Changelog

  • 0.3 - Fixed IE 7/8 error caused but the rouge trim function
  • 0.2 - Added extra error check and added minified version.
  • 0.1 - Inital release.

Demo

Demo or it didn't happen


Special Thanks to dennysfredericci

Who's gist (found here)was the basis of this extension.