JSFiddle - React, Tailwind, and code Playground

by Ryan Perez

JavaScript

$('form span').remove();
 $('form br').remove();
            
            $("form :input").each(function(index, elem) {
                var eId = $(elem).attr("id");
                var label = null;
                if (eId && (label = $(elem).parents("form").find("label[for=" + eId + "]")).length == 1) {
                    $(elem).attr("placeholder", $(label).html());
                    $(label).remove();
                }
            });
            
            $("table").each(function() {
            	$(this).removeClass();
                $(this).addClass('table');
                $(this).find('input, select, textarea').removeClass();
                    $(this).find('input, select, textarea').addClass('form-control');
            
            });
    $('form input:radio').removeClass();
     $('form input:submit').removeClass();
    $('.g-recaptcha').wrap('<center></center>');