Disable OK, Cancel buttons & Pop-up an alert on a SharePoint List Form

$(document).ready(function() {

 $(“input[value$=’OK’]”).css(“display”,”none”);
 $(“input[value$=’Cancel’]”).css(“display”,”none”);
alert(“The last date for leave encashment submission was 15th Feb 2012. You are not allowed to submit your leave encashment now.”);
});

Advertisements