[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

text box cannot read id

Posted on 2014-07-17
2
Medium Priority
?
161 Views
Last Modified: 2014-07-17
http://jsfiddle.net/sevensnake/F3nv8/1/

Yes I cannot read the  second or third  text values.
I can when the page first load and I assume the dom knows the first comment box loaded. The second  and third textarea added I cannot pick up the values.
0
Comment
Question by:Seven price
2 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 2000 total points
ID: 40202486
For dynamic elements use this format

$('#Comments1').keyup(function () {

changed to
$(document).on("keyup","#Comments1",function () {

Repeat for all the other events.
http://jsfiddle.net/F3nv8/3/
0
 
LVL 9

Author Closing Comment

by:Seven price
ID: 40202596
simple, thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

DOM Attributes and Properties treatment with jQuery 1.6 by Ivo Stoykov jQuery (http://jquery.com/) 1.6 introduces .prop() (http://api.jquery.com/prop/) and .removeProp() (http://api.jquery.com/removeProp/) methods which allow modifying or removi…
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question