Hello I had tried so many times but still finding the solution,The Problem is when we use AJAX and get HTML as response,the same response not shows in DOM,Issue is when we try to use response html for further use,It wouldn't be available for some manipulation oj JS call.
DOM cant raed ajax response
Collapse
X
-
-
-
its working fine.Now when I append more elementCode:$("input[name='destination[]']").click(function () { # some statement } ) <body> <div id="xyz"> <input type="checkbox" name="destination[]" value =100"></div>using AJAX then click on same checkbox the operation doesn't working.Code:<input type="checkbox" name="destination[]" value =100">
Comment
-
This is an AJAX problem I think. I don't see any PHP.
Also, you need to close your [code ] tag's with [/code]Comment
-
that was an answer to:
JavaScript doesn’t interact with the source code (Ctrl+u in FF), it interacts with the document tree.Also when u use AJAX response in ur HTML page and then see the view source(FF),You can't see the response HTML.
I’m not very familiar with jQuery/prototype, but if you have 2+ elements in your access result, you should use .click() on every element, not the returning list.Comment
Comment