Hi there WarrenGaebel,
does this help...
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="language" content="english">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<title></title>
<style type="text/css"></style>
<script type="text/javascript">
function init(){
document.getElementById('zzzz').onchange=function(){
wgxx();
}
}
function wgxx() {
var temp=document.getElementById('zzzz');
alert(temp);
alert(temp.tagName);
}
if(window.addEventListener){
window.addEventListener('load',init,false);
}
else {
if(window.attachEvent){
window.attachEvent('onload',init);
}
}
</script>
</head>
<body>
<form action="abcd.php">
<div>
<select id="zzzz">
<option value="1">1</option>
<option value="2">2</option>
</select>
</div>
</form>
</body>
</html>
coothead
Bookmarks