Onclick Disable in Jquery

Onclick Disable in Jquery

Hi all,
I am new to Jquery.I have to disable the PostLink mentioned in the below code .oncick i want to disable (to avoid continuous clicking) and  proceed to javascript.I don't know how to implement in existing code.
 
var currentTotal = 0;
var insertedSpan;
var firstNoteAccepted = false;
var postLink;
var postLinkText;




function noteAccepted(value) {
    if ((!firstNoteAccepted) && (value > 0)) {
        firstNoteAccepted = true;
        postLinkText.text("Post Transaction");


        postLink.attr("href", "javascript:postTransaction()");
           

    }
    if (value > 0) {
        $.post(note_accepted_ajax_url, { "transactionId": transaction_id, "currency": expected_currency, "value": value },
       function (data) {


       }, "json");
    }
    currentTotal += value;
    insertedSpan.text("" + currentTotal + " " + expected_currency + " inserted");
}



 
function postTransaction() {
      
    var currentUrl = window.location.href;
    var newUrl = currentUrl.replace(/InsertCurrency.*/, "PostTransaction/" + expected_currency + "?passNumber=" + passNumber + "&value=" + currentTotal + "&transactionId=" + transaction_id);


    window.location = newUrl;
}
 
$(function () {
    $(window).unload(function () {
           });

    insertedSpan = $('#insertedSpan');
    postLink = $('#postbutton');
    postLinkText = $('#postbuttontext');
    noteAccepted(10);
  
});