I am trying to rotate all alphabets, number and symbols in 180 degree, simply I mean rotating text upside down. But the code is not working, what I am trying to do is possible with this code?
Note: I want to rotate the text written inside TextArea not want to rotate the TextArea.
Code:
<!DOCTYPE html>
<html>
<body>
<form>
<textarea id="textArea1" style="height: 100px; width: 468px;"></textarea><br />
<br />
<input onclick="myFunction()" type="button" value="Flip Text" /><br />
<br />
<textarea id="textArea2" style="height: 100px; width: 468px;"></textarea>
</form>
<script>
function myFunction() {
document.getElementById("textArea2").value = document.getElementById("textArea1").css('transform', 'rotate(180deg)');
}
</script>
</body>
</html>