JSFiddle - React, Tailwind, and code Playground

by rwaldron

HTML

<div></div>

JavaScript

$("div").html("\n<p><form class='payment-form'><input type='text' name='field1' value='111' /><input type='text' name='field2' value='222' /></form></p>");


console.log( $(".payment-form").serialize() )