Through my index.php the file scripts/LM_info.js is loaded. The file jquery-3.2.1.min.js resides in both the index.php location and the scripts-dir.
It is intendend to scoll a textarea (<TEXTAREA name=\"LM_archive\" ...) to the bottom.
The script:
<script src="jquery-3.2.1.min.js"></script>
<script>
$(document).ready(function(){
var $textarea = $("LM_archive");
$textarea.scrollTop(99999);
});
</script>
//<script type="text/javascript">
//var textarea = document.getElementById("LM_archive");
//textarea.focus();
//textarea.scrollTop = 999999;
//</script>
<?php
$effe='LM_info script run';
?>
The variable $effe text 'LM_info script run' and a number of text lines are succesfully shown in the textarea with name "LM_archive" but the scrollbar is not set to show the last lines of the added text.
Which part do I not understand?
Thanks in advance.