原型(prototype)的 activate功能
Gives focus to a form control and selects its contents if it is a text input
根据原型(prototype)网站。即
$('my_element_id').activate();
jQuery 中的等效函数是什么?
最佳答案
$('#my_element_id').focus();
这是一个快捷方式
$('#my_element_id').trigger('focus');
关于javascript - 原型(prototype)函数 .activate() 的 jQuery 等价物是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3559944/