I have two textboxes tbxProdAc
and txtbxHowMany
. I would like to write a bit of code in the code behind so that when I enter text in one, any text that may have been in the other is removed.
How would one go about achieving this and in which event should I place it?
I have tried to use:
txtbxHowMany.Attributes.Add("onclick", "document.getElementById('tbxProdAC').innerText='';");
in the page load event but without success; should this be in the pre_init
?
As you can probably tell, complete novice at work here.