javascript - Check all radio controls with a specific substring on an ASP.NET form -


I am working on an NAT-powered questionnaire with several repeater controls, each of which has three radiobutan in line Are there. I am trying to write a simple JavaScript function to look at all the controls on the page, in which the control name / id contains the word "chkGreen".

The page looks like something:

  duplication 1 description 1 () green () yellow () red description 2 () green () yellow () red description 3 ( ) Green () yellow () red repeater 2 description 1 () green (yellow) red description 2 () green () yellow () red description 3 () green () yellow () red  

Even in this function:

 for  (i = 0; i  0) {Eval (_control.checked = true); }}  

This function does not work when I add a document. Writing or warning to write (), it sets a fire properly, so the logic is apparently working, this is not the only real radio bootutan check code working.

Any thoughts?

You do not need to _control.checked line eval.

 for  (I = 0; i  gt; {_control.checked = true;}}  
< / Html>

Comments