Функция Prototype's activ () фокусируется и выбирает все содержимое элементов формы.
В JQuery это поведение может быть воспроизведено тремя функциями:
// Focus
$('my_element_id').focus();
// Focus and select the content.
$('my_element_id').focus().select();
// Focus and select the content without problems in Google chrome
$('my_element_id').focus().select().mouseup(function(event){
event.preventDefault();
});