How to pass Jquery variable value to c# mvc?
I need to fetch the value of the variable btn in mvc code behind.
var btn = this.id;
if (btn == "previewButton")
Based on the variable value (Submit Button (or) Preview Button), my model will have Required validation on certain fields.