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
Post a Comment