小编Ami*_*wal的帖子

如何禁用特定 div 外的点击

这是示例代码。我想禁用搜索 ID 之外的点击。就像我们需要在弹出窗口中禁用外部点击一样

<body>
You can search <a href="google.com">here</a>
<div id="search">
Search
<input type="text" name=search><button>search</button> 
</div>
</body>
Run Code Online (Sandbox Code Playgroud)

html javascript jquery

2
推荐指数
2
解决办法
9587
查看次数

标签 统计

html ×1

javascript ×1

jquery ×1