disable

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • praCash
    New Member
    • May 2007
    • 12

    disable

    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
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    I'm pretty sure that this won't work and that you will need server side code to disable your controls.

    Comment

    • praCash
      New Member
      • May 2007
      • 12

      #3
      Originally posted by kenobewan
      I'm pretty sure that this won't work and that you will need server side code to disable your controls.


      Thanks buddy but It should not get refresh so I prefered to do it in javascript only

      Comment

      Working...