﻿// jQuery object to style bizforms
// element used to click in the prior element.
//
// Typical Use:
// $('.EditingFormValueCell input').formStyle();
//
(function ($) {
	$.fn.formStyle = function (options) {
		var o = $.extend({}, $.fn.formStyle.defaults, options);

		$(this).eq(0).focus();

		return this.each(function (index) {
			var $$ = $(this);

			$$.focus(function () {
				$(this).addClass('active');
			}).blur(function () {
				$(this).removeClass('active');
			});
		});
	};
	$.fn.formStyle.defaults = {
	};
})(jQuery);

