33-解决方案
4.8.2 解决方案
<input type="text" name="first_name" class="cleanup" />
<input type="text" name="last_name" class="cleanup" />
(function($) {
$(document).ready(function() {
$('input.cleanup').blur(function() {
var value = $.trim( $(this).val() );
$(this).val( value );
});
});
})(jQuery);