I have this jquery code:
$("#deletec-box").dialog({
autoOpen: false,
resizable: false,
height:230,
modal: true,
buttons: {
"Confirm": function() {
window.location = 'hrefurlfromclick';
$(this).dialog("close");
},
Cancel: function() {
$(this).dialog("close");
}
}
});
$("#deletec-confirm").click(function() {
$("#deletec-box").dialog("open");
return false;
});
Then in the page I have a link that calls the dialog:
<a href="?action=delc&cid=2" id="deletec-confirm">Delete</a>
My question is how do I get the value of href so if the person does confirm it loads the link they originally clicked?