robert_gsfame Posted May 9, 2010 Share Posted May 9, 2010 How can i have pass the value from one textbox into another textbox once type so its like if i type= "ABCD" in the first textbox then the second textbox will automatically copied thx Link to comment https://forums.phpfreaks.com/topic/201163-documentgetelementbyid-problem/ Share on other sites More sharing options...
ram4nd Posted May 9, 2010 Share Posted May 9, 2010 if you would use javacript framework like jquery. Then its more simple to do things and also tutorials about everytihing. Link to comment https://forums.phpfreaks.com/topic/201163-documentgetelementbyid-problem/#findComment-1055400 Share on other sites More sharing options...
robert_gsfame Posted May 9, 2010 Author Share Posted May 9, 2010 dont have any idea with Jquery Link to comment https://forums.phpfreaks.com/topic/201163-documentgetelementbyid-problem/#findComment-1055404 Share on other sites More sharing options...
F1Fan Posted May 9, 2010 Share Posted May 9, 2010 <input type="text" onkeyup="document.getElementById('secondText').value=this.value;"> <input type="text" id="secondText"> Link to comment https://forums.phpfreaks.com/topic/201163-documentgetelementbyid-problem/#findComment-1055469 Share on other sites More sharing options...
brianlange Posted May 9, 2010 Share Posted May 9, 2010 Example with jQuery. First textarea with id=t1, second textarea id = t2. $(document).ready(function() { $('#t1').keyup(function() { $('#t2').text(this.value); }); }); Link to comment https://forums.phpfreaks.com/topic/201163-documentgetelementbyid-problem/#findComment-1055479 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.