Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have to take the contents from textbox in first div and then display it in Second div in label format
Posted
Comments
Sandeep Mewara 24-Sep-10 5:32am    
So? Do it... whats stopping you or whats the issue... infact question here?

1 solution

So Easy,
Use Javascript to accomplish,

e.g

JavaScript
var myTextField = document.getElementById('myText');


and put it to lable

JavaScript
var lableField = document.getElementById('myLable');
lableField.innerText = myTextField.value;


wrap the above code in the Jscript function on any event you want this.

Please vote and Mark as answer if helped.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900