这个问题该怎么解决
我有一个文本框t1 和div d1
设定在t1在onblur的时候d1是隐藏的
这个我会做
但当我点击d1的时候也会触发t1的onblur
就会隐藏了d1
问题是这时候我不希望d1被隐藏
有什么解决办法啊
------解决方案-------------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN ">
<html>
<head>
<title> New Document </title>
<meta name= "Generator " content= "EditPlus ">
<meta name= "Author " content= " ">
<meta name= "Keywords " content= " ">
<meta name= "Description " content= " ">
</head>
<body>
<form method=post action= " ">
<input type= "text " id= "t1 " onblur= "document.all.d1.style.display= 'none '; " onclick= "document.all.d1.style.display= ' '; ">
<DIV ALIGN= " " id=d1> dddddddddddd </DIV>
</form>
</body>
</html>
------解决方案--------------------up
------解决方案--------------------???onChange?
------解决方案--------------------onClick?