I want to include some text inside a textbox (ID=button3) after pressing a button.
I have the following html:
<div id="collapse2" style="display:none">
<span id="button3">text before pressing the button></span>
</div>
And inside javascript I know I can solve my problem in two different ways.
Option 1:
var element=document.getElementById("button3");
element.innerHTML="text after pressing the button";
Option 2:
$('#button3').text('text after pressing the button');
Can you give me a 3rd option with razor/html helpers? This is related with another question I posted yesterday (My other question). However, I think this time I was able to explain my problem in a better way.