Results 1 to 2 of 2
  1. #1
    abhiN is offline Member
    Join Date
    Jan 2008
    Rep Power

    Default Dynamically changing the display


    In my jsp page i m using a select with 3 options which are fixed..

    On the same page i m having 3 div tags.. whose display is previously none.

    Now i want to display only single div depending upon the selection of option in select box.

    Means when user selects 1st option..display any one div..
    when he select the other option the first displayed div should be removed and displayed another div on same place..

    how to do this..


  2. #2
    ShoeNinja's Avatar
    ShoeNinja is offline Senior Member
    Join Date
    Oct 2007
    Rep Power


    You'll have to do this with JavaScript. You can write a JavaScript function to change the CSS attributes of the DIVs. This function can be called by the onChange attribute of your select element.

Similar Threads

  1. Changing size of Array
    By ravian in forum New To Java
    Replies: 3
    Last Post: 06-05-2012, 08:17 PM
  2. Changing icon of JOptionPane
    By mew in forum New To Java
    Replies: 3
    Last Post: 12-21-2007, 07:01 AM
  3. Changing the color of text
    By Lang in forum New To Java
    Replies: 1
    Last Post: 11-04-2007, 09:51 AM
  4. changing the secondary ID of a view
    By schuetzejanett in forum SWT / JFace
    Replies: 0
    Last Post: 08-08-2007, 07:28 PM

Posting Permissions

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