Return to Snippet

Revision: 16553
at August 7, 2009 16:01 by iamntz


Initial Code
$('#addcomment input, #addcomment textarea').each(function(){
		var t=$(this);
		t.wrap('<tr><td class="inner"></td></tr>').parents('tr:first').prepend('<td class="ml"></td>').append('<td class="mr"></td>').wrap('<div class="ntzForms"><table></table></div>').before('<tr><td class="tl"></td><td class="tt"></td><td class="tr"></td></tr>').after('<tr><td class="bl"></td><td class="bb"></td><td class="br"></td></tr>');
		t.parents('.ntzForms:first').addClass(t.attr('class'));
		t.focus(function(){
			t.parents('.ntzForms:first').addClass('focus');
		}).blur(function(){
			t.parents('.ntzForms:first').removeClass('focus');
		});
	});

Initial URL
iamntz.com

Initial Description
the css: http://snipplr.com/view/18037/niceforms-alternative-css/

Initial Title
Niceforms jQuery alternative (js)

Initial Tags

                                

Initial Language
jQuery