2

this is the first code i tried and still could not set the radion button to checked

$('input:radio[name="reached_cust"]').filter(`[value="${respone.cubiclestate}"]`).attr('checked', true);

this is the second code also tried but no success

   $("input[name='reached_cust']:checked").val(response.cubiclestate);

api response

so what i want to achieve is that on edit i want the radio buttons that the user already checked when submitting the form to be checked on edit but currently i get no radio buttons checked on edit.

0 Answers0