In my html, I have a text area and input area.
my jquery is trying to set some value to the span element.
<div class="col-xs-3">
<span data-name="sstNumber" class="sstNumber">
<textarea class="wt-resize" maxlength="50" rows="1" cols="20"></textarea>
</span>
<br>
</div>
when i do document.querySelector('[data-name="sstNumber"]').textContent = "value";
the text area border dissappears. How do i show the value and the text border doesn't dissapear?
<div class="col-xs-3">
<input type="text" name="sstnum" value="" size="20">
<span data-name="sstNumber2" class="sstNumber2"></span>
<br>
</div>
when i do document.querySelector('[data-name="sstNumber2"]').textContent = "value2";
the value goes outside the box. How do i show the value in the box?