function scrollTextareaToEnd(jqueryid) {
bottom = $(jqueryid)[0].scrollHeight - $(jqueryid).height();
$(jqueryid).scrollTop(bottom);
}
You call this as scrollTextareaToEnd("#myTextID");
It does not work.
What is wrong with it?
Thanks