Return to Snippet

Revision: 23888
at February 16, 2010 13:35 by matthalliday


Initial Code
$('input').each(function() {
    var inputType = $(this).attr('type');   
    $(this).addClass(inputType);
  });

Initial URL


Initial Description


Initial Title
Gives all inputs a class name of their type

Initial Tags
form

Initial Language
jQuery