Sunday, January 27, 2008

Select Z-Index

select z-index

If select tag overlaps and other element in your HTML file, then z-index may not work expecially if you are using I.E 6.0 or previous version.

In this case one of the methods you may follow to resolve the issue is the following:

function ChangeSelectVisibility(param){

var svn = document.getElementsByTagName("SELECT");
var visibility;

if(param){
visibility = 'visible';
}
else{
visibility = 'hidden';
}

for (i=0; i
svn[i].style.visibility = visibility;
}
return;
}


This function will hide all of the select tags in the file so that they will not overlap any other element.

Happy coding.




0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home