javascript - Getting a value of text area that created by Ajax request -


I have created a text area inside the table (also made as an AJAX request) and this table is a diva Inside is not made by Ajax request. I am trying to get the value of that text area through jazzery but it does not work, what can be the problem? Any assistance will be epi-assisted.

  & lt; Tr & gt; & Lt; td valign = 'middle' align = 'center' & gt; & Lt; label id = 'feedbackLabel' = 'feedbackText' for & gt; Feedback & lt; / Label & gt; & Lt; / TD & gt; & Lt; td class = 'diteend' wall = 'middle' align = 'center' & gt; & Lt; textarea id = 'feedback' & gt; & Lt; / Textarea & gt; & Lt; / TD & gt; & Lt; / TR & gt; $ ('# Resultdive'). ("Click", ".button", function () {var feedback = $ ('# feedback'). Val (); alert (feedback);});    

Instead of trying to add your listener to the document element Do:

  $ (document) .on ('click', '#resultDiv .button', function () {var formID = this.id; var Feedback = $ ('# coordinatorbackback '). Val (); Alert (Feedback);});    

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -