Jquery input label toggle effect

<!DOCTYPE html><html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”> <head> <script type=”text/javascript” src=”jquery-1.7.2.min.js”></script> <script type=”text/javascript”> (function($){$.fn.overlabel=function(options){var opts=$.extend({},$.fn.overlabel.defaults,options);var selection=this.filter(‘label[for]’).map(function(){var label=$(this);var id=label.attr(‘for’);var field=document.getElementById(id);if(!field)return;if(label.hasClass(‘cms-overlabel-active’)==false){var o=$.meta?$.extend({},opts,label.data()):opts;label.addClass(o.label_class).addClass(‘cms-overlabel-active’);var hide_label=function(){label.hide();label.data(‘shown’,0);};var show_label=function(){if(!this.value&&label.data(‘shown’)!=1){label.fadeIn(‘fast’);label.data(‘shown’,1);}else…

Continue Reading →