Is there a way to retrieve the value of an ASP.NET Literal control in JavaScript? I attempted the code below but it didn't return any values:
var companyName = document.getElementById('litCompanyName').textContent;
var companyNumber = document.getElementById('litCompanyNumber').textContent;
Appreciate any assistance!