I have the following input button:
<input type="button" value="Log On" onclick="TryLogon(@Model)" style=" height:25px; width:75px"/>
And I want to pass the Model as a JSON param to the TryLogon function:
function TryLogon(model) {
$.getJSON("/CertificateWebSite/Account/LogOnHelper", model, OnLogonResult);
}
How is it done correctly?