I have some JavaScript code that does the following
link.NavigateUrl = string.Format("javascript:MyFunction({0}, {1});", ID1, ID2);
So when the link is click MyFunction will be called and the dynamic parameters will be passed in.
How can I pass in these parameters using jQuery like:
$(function(){
$('#MyLinksID').click(function(){
console.log('Want to have access the two params here');
});
So how can I access the params from within my click event?