JSFiddle - React, Tailwind, and code Playground
HTML
<table>
<tr>
<td><div class="form_style">
<input type="hidden" name="crs" id="crs" value="1">
<input type="hidden" name="clg" id="clg" value="2">
<button id="FormSubmit">Apply Now</button>
<img src="images/loading.gif" id="LoadingImage" style="display:none" />
</div></td>
</tr>
<tr>
<td><div class="form_style">
<input type="hidden" name="crs" id="crs" value="3">
<input type="hidden" name="clg" id="clg" value="4">
<button id="FormSubmit">Apply Now</button>
<img src="images/loading.gif" id="LoadingImage" style="display:none" />
</div></td>
</tr>
</table>
<div id="res">
</div>
JavaScript
var data = [];
$("table").find(".form_style input:hidden").each(function(){
data.push(this.id);
});
$("#res").html(JSON.stringify(data));