2019-01-04, 20:15
There are too many things wrong with your example to even begin to look at it. The reference to JQuery needs to at least be inside the HTML tag, preferably in the head, which you're lacking. You don't appear to even be using JQuery. You have html tags inside your JS, and you have JS outside of the JS tag. Last of all, you're not making a call to JSON-RPC. Hint: use AJAX.