RadhaKrishnaKiJaya
asked on
Uncaught ReferenceError
Hi Experts,
I am trying to get the company name in document.ready function. Company name is available in the model.
Any suggestion what I am doing wrong?
Thanks in advance!
I am trying to get the company name in document.ready function. Company name is available in the model.
jQuery(document).ready(function () {
var CompanyName = @Model.Company;
}
When the @Model.Company is any number, for example "1111" then it works fine. But when it is coming as string like "TestCompany" I am getting the error " Uncaught ReferenceError: TestCompany is not defined" .Any suggestion what I am doing wrong?
Thanks in advance!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER