1

I am using this code to achieve the result of breaking the text in the enter button is pressed. It`s working perfectly, but I want to display the text in another page.

   $(document).ready(function() {
   $('#input').keyup(function() {
     $('#output').html($(this).val()); 
   });
  });

 <textarea id="input"></textarea><br />
 <pre id="output" style="font-family: Arial";></pre>

How do I use <pre id="output"> in another page? Any ideas?

4

1 に答える 1

0

の値を取得して、別のファイルの要素にinput入れるということですか? 現在のウィンドウ (要素ウィンドウやモーダル ウィンドウなど)<pre>の子でない限り、サーバー側の言語が必要になります。iframe

于 2012-09-18T11:59:07.873 に答える