JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" id="A_NAME{0}" value="test">

JavaScript

$( function() {
    alert( $('#A_NAME\\{0\\}').val() );
});