I recently added MathJax
to my webform, I'm able to do everything except figure out how to use MathJax
as a placeholder inside a TextBox
.
example:
<asp:TextBox ID="textbox1" placeholder="$x^2$"></asp:TextBox>
My placeholder doesn't want to use MathJax
even though everywhere else it's fine.
Is there a specific way to do this when using MathJax
inside the placeholder attribute?
Here is my MathJax
configuration:
<head>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
</script>
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML">