document.getElementById加onClick,onChange,style属性的方法
<a href="javascript:void(0)" id="c1">12322222222222222</a><br>
<select id="s1"><option value="1">111111111111</option><option value="2">222222222222</option></select>
<script>
document.getElementById ("c1").οnclick=function()
{
alert('c');
}
document.getElementById ("s1").οnchange=function()
{
s();
}
function s(){alert('s');}
</script>
style设置:
document.getElementById(src).style.display="none";