JSFiddle - React, Tailwind, and code Playground
by Timmy Willison
HTML
<div>typeof: <span id="text1">test</span></div>
<div>value: <span id="text2">test</span></div>
<div>
<form id="form1" method=""><input name="method" id="input1"><input name="method" id="input2"><input name="method" id="input3"></form>
</div>
CSS
div {clear:both; border: 1px solid red; margin: 5px;}
form {border: 1px solid blue;}
JavaScript
$('#text1').html(
typeof $('#form1').attr('method')
);
$('#text2').html(
$('#form1').attr('method')
);