JSFiddle - React, Tailwind, and code Playground

HTML

<select id="myselect">

</select>

JavaScript

arrs=[ ["L1", "L12", "D03"], ["L6", "L7", "C08"]   ];
$('#myselect').on('change',function() {
 sel_arr= arrs[$(this).val()] ; 
console.log(sel_arr);});