/ Published in: jQuery
the css: http://snipplr.com/view/18037/niceforms-alternative-css/
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('#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'); }); });
URL: iamntz.com