I have this model @model WebApplication1.Models.Person which has an Id data. I want to pass Id to a javascript function via <a href="#" onclick=myFunction(idGoesHere)>.
I tried putting @Model.id or passing the value of @Model.id to another variable, but still it doesn't work. Any help would be appreciated.