I have a script where I have two value. a and b.
<script>
var a= 1;
var b=2;
</script>
I want to pass this value to my controller which have a method.
public class mycontroller {
public void myvalues(string a1, string b1){
system.debug(a1 + ' '+ b1);
}
}
Haw can I achieve this. Please help me with the best way to get the solution.