how to set text property of the asp:textbox control with text property of asp: label control using javascript
-
how to set text property of the asp:textbox control with text property of asp: label control using javascript. I'm trying this with following javascript code calling function on onclick event of the button. function useIt(txtelement,lblelement) { document.getElementById(txtelement).value = document.getElementById(lblelement).title ; } but it is not working . Please suggest some solution. Thank you.
yog hui gfgh kgdgrt njjn hjgkn
-
how to set text property of the asp:textbox control with text property of asp: label control using javascript. I'm trying this with following javascript code calling function on onclick event of the button. function useIt(txtelement,lblelement) { document.getElementById(txtelement).value = document.getElementById(lblelement).title ; } but it is not working . Please suggest some solution. Thank you.
yog hui gfgh kgdgrt njjn hjgkn
yogita charhate wrote:
document.getElementById(lblelement).title
INstead try document.getElementById('Label1').innerText ;
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "