In the file worksheet.php, I cannot use a function that goes through the MathJax input boxes in order to limit what the user may write. I wish to limit the user to only typing in numbers, which I can do in normal html input boxes, but not LaTeX generated ones. I have tried changing the attribute from <input type='text'> to <input type='number'> as well as iterating through the input and using RegEx, but it can't recognize the input boxes, no matter how I try to get the element.
Goal: limit what the user can type into the LaTeX generated input boxes on worksheet.php to only numbers
In the file
worksheet.php
, I cannot use a function that goes through the MathJax input boxes in order to limit what the user may write. I wish to limit the user to only typing in numbers, which I can do in normal html input boxes, but not LaTeX generated ones. I have tried changing the attribute from<input type='text'>
to<input type='number'>
as well as iterating through the input and using RegEx, but it can't recognize the input boxes, no matter how I try to get the element.Goal: limit what the user can type into the LaTeX generated input boxes on
worksheet.php
to only numbers