AnsweredAssumed Answered

Accessing checkbox field in repeating section using JavaScript

Question asked by shk21 on Oct 20, 2015
Latest reply on Oct 20, 2015 by shk21

Hi all,

 

I am trying to access checkbox field of each row in repeating section using JavaScript.

 

I have seen posts where the following command works for just one checkbox without repeating section:

 

   NWF$('#' + checkboxname).find('input[value=\'Checkbox Value\']').prop('checked',true);

 

With repeating section below, how would the above line integrate with below?

 

NWF$(".RepeatingsectionClass .nf-repeater-row").each(function() {
  if(NWF$(this).find(".checkboxname"????????) ) { <----------------check if check value is Yes
    //  do something
  }
});

 

thanks again.

Outcomes