nsdrozario / math-worksheet-generator

Mathemacure, the ultimate math worksheet generator.
Other
1 stars 1 forks source link

Worksheet.php input box can't change attributes #29

Closed shuklanishchal closed 5 years ago

shuklanishchal commented 5 years ago

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

nsdrozario commented 5 years ago

no such code that changes type attribute is found on worksheet.php

nsdrozario commented 5 years ago

Reverted commit due to merge conflict