Javascript to enable / disable / update Multiple rows of Radio buttons in One Click

Scenario:

You have a form with j number of rows of data with i number of columns (radio options)

You want a single button clicking that will apply same option in bulk for whole page.

Example :

I have 4 number of rows with each radio options 4.

I have named each row as fr_status_j  , and each option of radio button as : fr_status_j_i

My Form name : final_applications

Requirement:

JavaScript which will run a loop with number of rows and another loop with number of columns.

Check for each radio option value and set it for the requested button value.

Source Code:

Yes

No

To Be Considered

Full Admission

Yes

No

To Be Considered

Full Admission

Yes

No

To Be Considered

Full Admission

Yes

No

To Be Considered

Full Admission

Source Code Image:

Output :

.