JSFiddle - React, Tailwind, and code Playground

by andyw_

HTML

<div class="color-swatch-wrapper">
<input type="hidden" name="descriptive[9]" value="SL01"  class="swatch-descriptive-name" /><!-- trying to retrieve this value -->
<input type="radio" name="id[9]" value="70" checked="checked" id="attrib-9-70" class="threads-radio-btn" />
<label class="attribsRadioButton two thread-opts" for="attrib-9-70">SL01<br />
   <img src="images/attributes/SL01.jpg" alt="" width="260" height="320" />
</label>
</div>

JavaScript

descriptiveName = ($('input[name="id[]"]:checked', '#nameOfForm').prev.().val());
console.log(descriptiveName);