/ Published in: jQuery
Expand |
Embed | Plain Text
$('input').each(function() { var inputType = $(this).attr('type'); $(this).addClass(inputType); });
You need to login to post a comment.
matthalliday on 02/16/10
1 person have marked this snippet as a favorite
$('input').each(function() { var inputType = $(this).attr('type'); $(this).addClass(inputType); });
You need to login to post a comment.