JSFiddle - React, Tailwind, and code Playground HTML <form id='foo' action='/foo' method='PUT'> </form> JavaScript alert($('form').attr('method'));