Jump to content
php.lv forumi
  • 0

textarea un js logs


edi

Question

6 answers to this question

Recommended Posts

  • 0

ar innerHTML

1. JS rindinja

<textarea id="text_are_id"></textarea>
<a href="javaScript:void(0)" onclick="document.getElementById('div_id').innerHTML= document.getElementById('text_are_id').value; return false"> Klik Klik <a/>
<div id="div_id" style="width:300px; height:300px;">ssss</div>

Edited by Grey_Wolf
Link to comment
Share on other sites

  • 0

ar innerHTML

1. JS rindinja

<textarea id="text_are_id"></textarea>
<a href="javaScript:void(0)" onclick="document.getElementById('div_id').innerHTML= document.getElementById('text_are_id').value; return false"> Klik Klik <a/>
<div id="div_id" style="width:300px; height:300px;">ssss</div>

es domāju tā, ka atverās logs virs lapas brauzerī :) , bet paldies.. tas arī der

 

<form action="" method="post">
<textarea name="atskaite" rows="20" cols="70" maxlength="500" onkeyup="return ismaxlength(this)"></textarea> 
<br><input type="submit" value="Send">
</form>

kā lai virs textarea to izvada ?

Edited by edi
Link to comment
Share on other sites

  • 0

TA liec linka vietaa ko gribi .... kaut bildiiti ar roza siventinju ...

<input type="button" onclick="document.getElementById('div_id').innerHTML= document.getElementById('text_are_id').value; return false" value=" Klik Klik ">

var kaut kā izvadīt to alert logā vai kā tur viņu sauc.. nevis startp <div id="div_id"></div>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...