JSFiddle - React, Tailwind, and code Playground

by tallothendill

JavaScript

var form = '<form class="new_relation" id="new_relation" action="/relations/add_dependency" accept-charset="UTF-8" data-remote="true" method="post"><input name="utf8" type="hidden" value="&#x2713;" /><input value="3101" type="hidden" name="relation[to_id]" id="relation_to_id" /><input value="1" type="hidden" name="relation[graph]" id="relation_graph" /><select class="select-article" name="relation[from_id]" id="relation_from_id"></select><input type="submit" name="commit" value="Add a dependency of this article." data-disable-with="Add a dependency of this article." /></form>';
console.log(form);