Advanced Search

Results 1 to 3 of 3

Thread: New to CSS - Need urgent reply

  1. #1
    Join Date
    Oct 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default New to CSS - Need urgent reply

    I have a scrollingtable created for a jsp.

    I want this to be removed dynamically on click of a button. How to achieve this.

    I have a div tag for the following:

    #scrollingTableContainer {
    border: 1px solid #ccc;
    width: expression(window.screen.availWidth*0.90);
    overflow: scroll;
    }

    as : <div id="scrollingTableContainer">.

    Pls help me.

  2. #2
    Join Date
    Aug 2004
    Posts
    9,863
    Thanks
    3
    Thanked 960 Times in 949 Posts
    Blog Entries
    15

    Default

    Do you mean remove the CSS for the DIV dynamically onClick? Try something like:

    Code:
    <button onClick="document.getElementById('scrollingTableContainer').id=''">Some button</div>
    This is the simpliest way, by actually modifying the ID associated with the DIV.

  3. #3
    Join Date
    Oct 2005
    Location
    -
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    by using image. . how to change it to css code?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •