how to load js with jquery load method -


i've tried use jquery load method load javascript:

<div id="update"></div>  <script type="text/javascript"> $('#update').load('find.html .themes', function(data) {      $(this).find('.themes').css({"width":"100%", "margin":"auto"}); });    </script> 

my file find.html:

    <div class="themes">       <script> document.write('this test'); </script>     </div> 

please can show me how load javascript?

if don't have things in find.html div can access elements directly:

<script type="text/javascript">   $('#update').load('find.html', function(data) {     $(this).find('.themes').css({       "width": "100%",       "margin": "auto"     });   }); </script> 

Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -