I am facing an issue with my code. I need to pass the value of a JavaScript variable X as a parameter in the Razor function EXTENDED.ProcessDay()
function Test() {
var X = document.getElementById("targetID").value;
document.getElementById("result").value = "@EXTENDED.ProcessDay(X)";
}
Unfortunately, the above code is not working as expected. I have also tried:
function Test() {
var X = document.getElementById("targetID").value;
document.getElementById("result").value = "@EXTENDED.ProcessDay(@X)";
}
However, this approach did not yield the desired result either. Can someone guide me on the correct method to achieve this?