Click here to Skip to main content
15,886,422 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear All,
I am facing a problem to getting Span text which bind by angular model.
Like for bellow code

{{authorityName}}

if in j query i want value for above span like
JavaScript
alert(document.getElementById('span2').innerHTML);

it return {{authorityName}} not dynamic text.
Can anybody help me on this?

What I have tried:

I have tried
JavaScript
alert(document.getElementById('span2').innerHTML);
Posted
Updated 1-Dec-16 1:31am
Comments
King Fisher 1-Dec-16 4:28am    
you can't you read the text from authorityName itself?
Mukesh Ghosh 1-Dec-16 5:47am    
no, i don't know how, i am not able to get value what is come in {{authorityName}}
dynamically.
Peter Leow 1-Dec-16 6:35am    
You mentioned jQuery, but that is just plain JavaScript. Where is this 'span2' in your code? Show it.
Mukesh Ghosh 1-Dec-16 7:10am    

Regulation Topics Covered




{{topicName}}






Regulation Group



{{authorityName}}





Regulation Definition



{{authorityName}}



Regulation Documents





{{fld.RiskRegulationDocumentItemName}}







Compliance Frequency



{{frequencyName}}





Compliance Items





{{fld.Name}}







Non-Compliance Risk Penalty Items



{{NonComplianceName}}





Regulation Recommendation



<%--{{recommendationName}} --%>


{{fld.RiskComplianceItemDescription}}








Violation Root Cause



<%-- {{Data}} --%>



{{fld.Data}}








Test Area



{{testareaName}}


1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900