• Share

Snippet – jQuery: Get content from another page

Free Website

Learn to get content from another page & display them using jQuery

<script type="text/javascript">
            var content = $.ajax({
                url: "default.html",
                async: false
            }).responseText;

            //set the value of the content into a textarea by creating a textarea & setting the content value to it.
            $("#data").attr("value", content);
</script>

Related posts:

  1. Snippet – jQuery: Trim strings using jQuery
  2. Page Peel Effect using jQuery & CSS
  3. Sexy Combo – jQuery Plugin
  4. Add Text/Color/Scroll animation to your content using jQuery
  5. Flext: Auto-Growing Textrea – MooTools Plugin

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>