# Input validation

**URL:** <https://forum.codewithmosh.com/t/input-validation/838>\
**Category:** JavaScript\
**Created:** [November 22, 2020, 10:01pm UTC](https://forum.codewithmosh.com/t/input-validation/838 "2020-11-22T22:01:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![arezai](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@arezai](https://forum.codewithmosh.com/u/arezai)\
**Post date:** [November 22, 2020, 10:01pm UTC](https://forum.codewithmosh.com/t/input-validation/838/1 "2020-11-22T22:01:40Z")

</div>

How can I change the alert for input validation using JS

---

<div class="post-metadata">

**Author:** ![Anton2021](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/anton2021/32/1131_2.png) [@Anton2021](https://forum.codewithmosh.com/u/Anton2021)\
**Post date:** [March 12, 2021, 9:39am UTC](https://forum.codewithmosh.com/t/input-validation/838/2 "2021-03-12T09:39:18Z")

</div>

Can you add some more context and/or a screenshot ? As far as I know alerts are custom, and errors depend on the input.
