I am trying to achieve the above screenshot using backbone.All users comes in an array together and I am looping around the array in the template.I have to capture the text entered in each input and calculate the text limit
Asked
Active
Viewed 22 times
0
-
Also see: https://stackoverflow.com/a/6988504/1110636 – Timir May 15 '18 at 17:22
-
@Timir I am looking for array of dynamic elements and attaching events to those elements. In my example its the input field. – Harsha Kakumanu May 15 '18 at 19:15
-
You will need to bind a change handler for each input, and calculate the length of text entered there. The answer linked above shows how to bind events to dynamically generated controls such as in your case. – Timir May 16 '18 at 01:48
-
@Timir Got it Thank you – Harsha Kakumanu May 16 '18 at 14:22