What is the difference or harm in the following statement:
var x = '&P1_PAGE_ITEM1.';
as compared to:
var x = document.getElementById('P1_PAGE_ITEM1').value;
They both return the same results, but I'm trying to determing the differences between the methods, and if there are any unwanted side effects.
And are substitution strings (like &P1_PAGE_ITEM1.) particular to APEX, don't think I've ever seen this used outside of APEX.