/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('input').each(function() { var inputType = $(this).attr('type'); $(this).addClass(inputType); });