A
ahmad
when i used the statment
for(var i = 0; i < menu.length; i++)
{
menu.options.selected = "false";
}
to deselect all the options within a list, it surprisingly selected all
the options. I tried another option like
menu.options.removeAttribute("selected");
it also didnt work without any error message.
what would be the solution of this problem. i want to deselect all the
options of a list dynamically.
for(var i = 0; i < menu.length; i++)
{
menu.options.selected = "false";
}
to deselect all the options within a list, it surprisingly selected all
the options. I tried another option like
menu.options.removeAttribute("selected");
it also didnt work without any error message.
what would be the solution of this problem. i want to deselect all the
options of a list dynamically.