Change the table structure based on the input

Change the table structure based on the input

drakula1234drakula1234 Posts: 58Questions: 1Answers: 0
edited August 2012 in General
I have a dropdown which has to select the table based on the dropdown value.

Say I have two tables, table1 and table2. When the page loads initially it will load table1, after I select a dropdown, it should select table2. I mean it must completely render table2. I would really appreciate help on to recreate the table based on the value. I am little confused with that

[code]




Asset Name
Serial Number
Model
Make
ABC
CDE
EFG







Asset Name
Serial Number
Model
Make
EFG
ABC
DEF




[/code]

Replies

  • drakula1234drakula1234 Posts: 58Questions: 1Answers: 0
    Can anyone help me with this ? Any idea of switching table structure ?
  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    I might not 100% get what you are looking for, but can't you just show and hide DIV elements based on the value in the select list? Add an `change` event to it, such that when a value change is detected, you would hide one element and show the other?

    Allan
This discussion has been closed.