JSFiddle - React, Tailwind, and code Playground

HTML

<input type="hidden" name="formFieldMap['876356_7'].rule" value="req" disabled="">

JavaScript

let test = $('input[value="test"]');
console.log('test');