Hi one and all,
I am using C#.net language in asp.net framework using visual studio 2008. I have one checkbox as input control and two textboxes named textbox1 and textbox2 as asp controls. First the client needs to type something in textbox1 and after that the client needs to check the input checkbox. Then the text in textbox2 should be as same as that of textbox1. How to write javascript for this. The following did not work:
I have given onclick=display() near input control of checkbox:
I have written javascript as follows:
document.getElementById("textbox1").innertext = document.getElementById("textbox2").innertext .
Please help me thanx in advance
happyns 0 Newbie Poster
mail2saion 14 Posting Whiz in Training
happyns 0 Newbie Poster
mail2saion 14 Posting Whiz in Training
sknake 1,622 Senior Poster Featured Poster
happyns 0 Newbie Poster
happyns 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.