edi Posted November 23, 2009 Report Posted November 23, 2009 kā var no textarea ievadīto tekstu izvadīt js logā.. ? lietotājam uzspiežot pogu apskatīt atverās logs ar tekstu ko viņš ievadīja textarea Quote
0 Grey_Wolf Posted November 23, 2009 Report Posted November 23, 2009 (edited) 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 November 23, 2009 by Grey_Wolf Quote
0 edi Posted November 23, 2009 Author Report Posted November 23, 2009 (edited) 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 November 23, 2009 by edi Quote
0 Grey_Wolf Posted November 23, 2009 Report Posted November 23, 2009 kā lai virs textarea to izvada ? DIVAM pieliec klaat position:absalute; top:100px; left:200px z-index:9999 tas ir izvadi to divu VIRS prejiem elementiem .. -- Kaa vinju novietot lapai pa vidu, tas jau ir cits staasts ... Quote
0 edi Posted November 23, 2009 Author Report Posted November 23, 2009 var uzlikt pogu kaut kā? nevis linku Quote
0 Grey_Wolf Posted November 23, 2009 Report Posted November 23, 2009 var uzlikt pogu kaut kā? nevis linku 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 "> Quote
0 edi Posted November 26, 2009 Author Report Posted November 26, 2009 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> Quote
Question
edi
kā var no textarea ievadīto tekstu izvadīt js logā.. ?
lietotājam uzspiežot pogu apskatīt atverās logs ar tekstu ko viņš ievadīja textarea
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.