• Lucid Dreaming - Dream Views




    Results 1 to 2 of 2
    1. #1
      ¯\_(ツ)_/¯ benzilla04's Avatar
      Join Date
      May 2012
      LD Count
      40-ish 1 WILD
      Gender
      Location
      London
      Posts
      488
      Likes
      326

      Question HTML + jQuery - Textarea won't .load()

      I'm trying to use jQuery's load() to change the value of a textarea but it doesn't work

      HTML:
      <p><textarea cols="70" style="height:200px;border:1px solid #ccc;border-radius:3px;padding:4px;" name="html" id="html"></textarea></p>

      jQuery:
      $("#html").load('ajax/'+href+'.php');

      also tried:
      $("#html").text(load('ajax/'+href+'.php'));

      and:
      $("#html").val('');
      $("#html").load('ajax/'+href+'.php');

      It just stays blank. Can anyone help me?

    2. #2
      khh
      khh is offline
      Remember Achievements:
      1000 Hall Points Veteran First Class
      khh's Avatar
      Join Date
      Jun 2009
      Gender
      Location
      Norway
      Posts
      2,482
      Likes
      1309
      It should work just like that (example).
      Seems there must be an error somewhere else in your script, or it's possible your jQuary download is corrupt or something.
      April Ryan is my friend,
      Every sorrow she can mend.
      When i visit her dark realm,
      Does it simply overwhelm.

    Similar Threads

    1. firefox won't load
      By Man of Shred in forum Tech Talk
      Replies: 8
      Last Post: 06-20-2009, 12:13 AM
    2. Get a load of this!
      By PuppyCat in forum General Lucid Discussion
      Replies: 6
      Last Post: 08-08-2008, 03:43 PM

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •