简体   繁体   中英

Prototype.js Test If Element Has Focus

所以我几年前和几年前都放弃了prototype.js来进行jQuery大声笑...现在我发现自己不得不再次使用它,无法退出以弄清楚如何从prototype.js中获取此jquery语句...任何人都可以救命?

if(!$('#search').is(':focus')){

我的问题的答案已由Pointy的评论解决了……这是我为其他可能需要它的人提供的最终解决方案。

if($$('#search:focus') == ''){

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM