JSFiddle - React, Tailwind, and code Playground

HTML

<input name="foo.bar" value="abc">

JavaScript

alert($('input[name=foo.bar]').val());