'Function call removed in wordpress

In wordpress I have written a function call oninput="functionName()" in tag and called it. On updating the page the function gets removed from the page. Can anyone suggest a solution?? Snnippet: <input id="invest_return_sip" value="10" class="form form-body form-control" name="invest_return_sip" oninput="calculateSIP()" type="number" />



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source