Anybody?
On 26 апр, 03:37, Colonel <tcolo...@gmail.com> wrote: > Is it possible ti use jQuery or JS in file which I get by $.ajax? > > For example, I have a file like this file.php: > <? > <div id="my_div_1"><p>Some text ...</p></div> > <div id="my_div_2"><p>Some text ...</p></div> > <div id="my_div_3"><p>Some text ...</p></div> > .... > <script type="text/javascript"></script> - use JS ??? > .... > $("my_container").html("Some text ..."); - use jQuery ??? > ?> > > And I use $.ajax from main_file.php: > $.ajax({ > type: "POST", > dataType: "html", > data: "data=" + $("#container").html(), > url: "file.php", > cache: false, > error: function(msg) {alert("Error Saved: " + msg);}, > success: function(msg) {alert("container = " + $("#container").html > ());}, > complete: function() {$.unblockUI();} > > });