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" />