(function($, window){ var ProfiTheme = window.ProfiTheme || {}; ProfiTheme.Form = function() { $('input,textarea').focus(function(e) { $(this).parent().addClass('focus'); }).blur(function(e) { $(this).parent().removeClass('focus'); }); } $(document).ready(function() { ProfiTheme.Form(); }); })(jQuery, window);