121
rated 0 times
[
126]
[
5]
/ answers: 1 / hits: 21166
/ 11 Years ago, thu, january 23, 2014, 12:00:00
The simplest version of my question is this: I have a few spans:
<span id=one>SpanOne</span>
<span id=two>SpanTwo</span>
<span id=three>SpanThree</span>
and a text field:
<input type=text id=textField/>
I want to click on one of the spans, and have the text field populated with its text. I can do something like adding 'onClick=document.all.textField.value=this.text' to the span elements, but how can I do it using AngularJS?
More From » html