Skip to content
Advertisement

Radio not disabling due to loop

This is my radio disabling function.

JavaScript

And I will call it when the page is loaded!

JavaScript

And the radio button is displayed through loop..!

JavaScript

So the radio ids would be like: dis1,dis2 … dis6

But its not disabling it…! I think its because of the while loop, I used..! what should I do..?

Advertisement

Answer

this line:

JavaScript

should be (note the removed quotes from id):

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement