For some reason clicking the button will not but the variable in the textbox, I'm not getting any syntax errors in my compiler so I think it's a logic error. THanks in advance
JS:
var testvar = 5
$('.teambtn').click(function() {
document.getElementById('team').text = (testvar);
});
html:
<textarea id=team cols="50" rows="10">
Your Team Will be here:
</textarea>
<button type="button" id=teambtn class="btn">Export</button>