Wednesday, 8 March 2017

How To Assign Value In Textbox using JavaScript?

-------------------------------------------------------------------------
//Asp C# Controls
-------------------------------------------------------------------------
document.getElementById('textbox_name').value = "Your value";


-------------------------------------------------------------------------
//Html Controls For All Operating System
-------------------------------------------------------------------------
document.getElementById('Control_Name').innerText = "Your value";

OR

-------------------------------------------------------------------------
//For Linux Ubuntu Operating System
-------------------------------------------------------------------------
document.getElementById('Control_Name').textContent = "Your value";

No comments:

Post a Comment