如何在一个input输入框中添加一个搜索图标(注:不是背景图标),并给要能搜索图标添加点击事件
------解决思路----------------------

点击事件 可以用onclick
------解决思路----------------------
<input id="name" style="padding-right:20px;background:url('图片地址') no-repeat scroll right center transparent;" />
------解决思路----------------------
<input>是个输入框,里边肯定不能加别的东西的,你要的是这种情况吧
<span style="width:100px;border:1px solid #cccccc">
<input type="text" name="year" id="year" style="width:80px;border:none" />
<img src="../../front/20141210/images/a1.jpg" width="20px" height="20px" onclick="check(this)"/>
</span>
------解决思路----------------------
参考它的源码