I need to send variables at runtime to a js method for ajax. I am trying with this onclick function but it gives syntax error on click.:
Did you try leaving a space after the last curly brace?