# Type answer: 2 requests

**URL:** <https://forums.ankiweb.net/t/type-answer-2-requests/21445>\
**Category:** Development\
**Created:** [July 14, 2022, 9:29am UTC](https://forums.ankiweb.net/t/type-answer-2-requests/21445 "2022-07-14T09:29:05Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jcznk](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/jcznk/32/15215_2.png) [@jcznk](https://forums.ankiweb.net/u/jcznk)\
**Post date:** [July 14, 2022, 5:07pm UTC](https://forums.ankiweb.net/t/type-answer-2-requests/21445/4 "2022-07-14T17:07:19Z")

</div>

Maybe something like this

CSS:

```auto
.typeGood {background-color: #ccc;}
.typeBad {background-color: #ccc;}
.typeMissed {background-color: #ccc;}

#typeans br {display:none;}
#typeans #typearrow { display: none;}

#typeans br ~ .typeGood {display:none;}
#typeans br ~ .typeBad {display:none;}
#typeans br ~ .typeMissed {display:none;}

```

JavaScript (Back template):

```auto
<script>

    var typed_answer = document.querySelector("#typeans").innerHTML;
    var typed_answer_without_dashes = typed_answer.replace(/[-]/g, ""); 
    document.getElementById("typeans").innerHTML = typed_answer_without_dashes;

</script>

```

The purpose of the script is to remove the dashes automatically added by Anki when the positions of what you typed and what you were supposed to type do not match.  
Unfortunately, it also removes manually typed dashes.

---

_[View the full topic](https://forums.ankiweb.net/t/type-answer-2-requests/21445)._
