Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

for example I have html on my page (which populated dynamically):

<ul>
 <li>Country</li>
 <li>State</li>
 <li>City</li>
</ul>

And want to send this to the db after pressing the button.

I used ng-model="modelName" for inputs, but what I can use for simple text?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Can you just read it with document.getElementById("yourElement").innerHTML ?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.