edi Posted November 23, 2009 Report Share 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 Link to comment Share on other sites More sharing options...
0 Grey_Wolf Posted November 23, 2009 Report Share 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 Link to comment Share on other sites More sharing options...
0 edi Posted November 23, 2009 Author Report Share 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 Link to comment Share on other sites More sharing options...
0 Grey_Wolf Posted November 23, 2009 Report Share 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 Link to comment Share on other sites More sharing options...
0 edi Posted November 23, 2009 Author Report Share Posted November 23, 2009 var uzlikt pogu kaut kā? nevis linku Quote Link to comment Share on other sites More sharing options...
0 Grey_Wolf Posted November 23, 2009 Report Share 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 Link to comment Share on other sites More sharing options...
0 edi Posted November 26, 2009 Author Report Share 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 Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
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.