Hello
I have this function that works, but I would like to make this one as a general function so I can pass in 2 variables.
<script type="text/javascript">
$(function() {
$(SOME_ID_HERE).click(function() {
if (confirm(SOME_ERRORMESSAGE_HERE)) {
$.post(this.href, function(data) {
document.location.reload();
});
return false;
}
});
});
</script>
How shall I modify this one so I can pass in SOME_ID_HERE and SOME_ERRORMESSAGE_HERE? and how do I call that function?
/M