My Problem Is,
When I Type Multi Lines In TextArea I Get Output Like This,
upper one is input and lower one is output
But I Want To Get Output Like This,
In This Photo I Used <br/>
Just For Making The Look What I Want But, In Real I Don't Want To Use <br/>
To Break Line In Multi Line
This Is Th Code I'm Using...
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<TextArea id = "Input" onKeyupUp = "showResult()" style = "height: 100px; width: 100%; resize: none;"> </TextArea>
<Div id = "output" ></Div>
</body>
<script>
function showResult(){
var input = document.getElementById("Input").value;
document.getElementById("Output").innerHTML = input;
}
</script>
</html>
Aucun commentaire:
Enregistrer un commentaire