Okay, so right now I'm trying to call an Ajax function from a normal text link, however I cannot get it to work properly(or at all). If I call it form a button, it will work fine.
Essentially I'm trying to reorder the items in a table.
how can I call Ajax from an ActionLink or Ajax?
Here is the script that works fine when called from a button:
<script type="text/javascript">
$(document).ready(function() {
$(".Name").click(function() {
$.ajax({
url: '<%= Url.Action("MyAction") %>',
dataType: 'html',
success: function(result) { $("#tableToUpdate").html(result); }
});
});
});
</script>