dialog buttons - passing button name
Hi,
I am trying to get button name from the link "name' tag. The original button is:
- 'Save': function() {
$('#linkForm').submit();
$(this).dialog('close');
}
and I am trying something like this:
- $link.attr('name'): function() {
$('#linkForm').submit();
$(this).dialog('close');
},
I am getting errors, how can I accomplish this?