team2005
asked on
Hide text and listbox
Hi!
Have this test site: -> http://jsfiddle.net/FNe7d/2/
The problem is that when i select "Varemottak" from listbox1
The two new listboxes is not align at the same line as the 2 other listboxes ?
Why ?
Have this test site: -> http://jsfiddle.net/FNe7d/2/
The problem is that when i select "Varemottak" from listbox1
The two new listboxes is not align at the same line as the 2 other listboxes ?
Why ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
replace :
display = "block" by display = "table-row" :
http://jsfiddle.net/FNe7d/4/
display = "block" by display = "table-row" :
http://jsfiddle.net/FNe7d/4/
window.onload = function() {
document.getElementById("Rapport").onchange = function() {
if(this.options[this.selectedIndex].text=="Varemottak") {
document.getElementById("sorteringkat").style.display = "table-row";
document.getElementById("kategorier").style.display = "table-row";
}
else {
document.getElementById("sorteringkat").style.display = "none";
document.getElementById("kategorier").style.display = "none";
}
}
}
ASKER
Thanks
HTH
Ivo Stoykov