How can i call a javascript funciton on the click of an anchor tag? I am using areas as well.
I need to get the views from areas on the click of an anchor tag.
List
this getlist() makes an ajax call and get the view back. I dont want the page to be refreshed. hence i am making an ajax call.
Now i am confused how to invoke area.
if i am using an Action Link, I can use like this.
<%=Html.ActionLink(“List”,”GetList”,new
{area=”Blog”},null) %>
but i am using anchor tag, how can i do this???
Please let me know if i am confusing.
You could use jquery to attach a
.click()event handler to this anchor tag: