Files
pi-control/public_html/js/settings.troubleshooting.cron_selection.js
Gregor Schulte b303dd00d6 Init Repo
2021-06-17 12:24:22 +02:00

15 lines
352 B
JavaScript

function selecttxt(objId)
{
if (document.selection)
{
var range = document.body.createTextRange();
range.moveToElementText(document.getElementById(objId));
range.select();
}
else if (window.getSelection)
{
var range = document.createRange();
range.selectNode(document.getElementById(objId));
window.getSelection().addRange(range);
}
}