i have an asp application in which i have to use javascript to get the value of an element I need to get the value of each tag age : new { age = “age” + i.ToString() didn’t work and i have to replace it by a script javascript using document.getElementsByName method How can i modify my code to do
Tag: razor
Calling ASP.NET MVC Action Methods from JavaScript
I have sample code like this: How can I write JavaScript code to call the controller action method? Answer Use jQuery ajax: http://api.jquery.com/jQuery.ajax/