Disabling Div element

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Varangian

    Disabling Div element

    Hello

    I want to disable all the elements which are the childs of a Div
    element.

    I tried disabling the div element but it doesn't work... i.e. the child
    elements were not disabled

    what shal I do am I missing something ?

    thanks

  • Ian Collins

    #2
    Re: Disabling Div element

    Varangian wrote:[color=blue]
    > Hello
    >
    > I want to disable all the elements which are the childs of a Div
    > element.
    >
    > I tried disabling the div element but it doesn't work... i.e. the child
    > elements were not disabled
    >
    > what shal I do am I missing something ?
    >[/color]
    What do you mean by disable? Are you talking about inputs?

    --
    Ian Collins.

    Comment

    • Varangian

      #3
      Re: Disabling Div element

      inputs?

      disabling the elements found in that Div...

      Comment

      • Ian Collins

        #4
        Re: Disabling Div element

        Varangian wrote:[color=blue]
        > inputs?
        >
        > disabling the elements found in that Div...
        >[/color]
        Please quote some context.

        What to you mean by disable? Hide?

        --
        Ian Collins.

        Comment

        • Varangian

          #5
          Re: Disabling Div element

          for exampe I have 3 ImageButtons in this Div... I want to disable
          them.. disabling the entire div doesn't work... disable is not hiding..
          disabling - prohibiting the user from clicking on the ImageButton..
          thats all

          Comment

          • Ian Collins

            #6
            Re: Disabling Div element

            Varangian wrote:[color=blue]
            > for exampe I have 3 ImageButtons in this Div... I want to disable
            > them.. disabling the entire div doesn't work... disable is not hiding..
            > disabling - prohibiting the user from clicking on the ImageButton..
            > thats all
            >[/color]
            Please read <http://cfaj.freeshell. org/google/>, otherwise you will get
            slagged of here for not quoting.

            Event handlers aren't inherited, so you will have to ignore the onclick
            event based of some state in your script.

            --
            Ian Collins.

            Comment

            • Capricorn.St@gmx.de

              #7
              Re: Disabling Div element

              why don't you just iterate over the imagebuttons and change the
              attribute disabled?

              Comment

              • Varangian

                #8
                Re: Disabling Div element

                thats why I'm asking what to do

                Comment

                Working...