Hi guys
good morning!!
I want javascript code to disable the server controls inside a table or a div tag.
In detail...
when i check a particular checkbox all the controls in a table should get enabled... and if a I uncheke the checkbox all the controls in the table should get disabled.
I have used the following code
if(checkbox1.ch ecked==true)
{
for(var i = 0; i< table1.length; i++)
{
if(table1[i].type == 'checkbox')
{
table1[i].disabled =true;
}
}
}
but it could not work.
I can use div tags insted of tables..
please suggest in this regards.
Thanks in advance...
regards
Prakash
good morning!!
I want javascript code to disable the server controls inside a table or a div tag.
In detail...
when i check a particular checkbox all the controls in a table should get enabled... and if a I uncheke the checkbox all the controls in the table should get disabled.
I have used the following code
if(checkbox1.ch ecked==true)
{
for(var i = 0; i< table1.length; i++)
{
if(table1[i].type == 'checkbox')
{
table1[i].disabled =true;
}
}
}
but it could not work.
I can use div tags insted of tables..
please suggest in this regards.
Thanks in advance...
regards
Prakash
Comment