hi can anyone tell me what should i write so that on every iteration of for loop option's value changes and i get one by one option's value. following is the code:
for (var i=1; i<4; i++)
{
$("#mydropdown_for_month option[value=i]").attr('hidden','hidden');
}
for example dropdown has 10 values but i want to hide those options which have the values dynamically changed by for loop so i write " option=i " but it is not working. I mean i want to write variable i. how can i do that