attr('value', 'Please Wait...') is not working

attr('value', 'Please Wait...') is not working

I have already opened a dialog, there are form inside with InputGoodsAdd, which use to submit the form, but I want to set the button text as "please wait ..." and disable it.
  1. $(document).ready(function () {
  2.     $('#InputGoodsAdd').click(function () {
  3.         var inputGoodsLink = $('#InputGoodsLink').val();
  4.         var inputGoodsQuantity = $('#InputGoodsQuantity').val();
  5.         var inputGoodsRequirement = $('#InputGoodsRequirement').val();
  6.         var inputGoodsSpecific = $('#InputGoodsSpecific').val();

  7.         if (inputGoodsLink == '') {
  8.             alert('請輸入以 http:// 為開始的正確貨品網址.');
  9.             $('#InputGoodsLink').focus();
  10.             return false;
  11.         }
  12.         else if (inputGoodsLink == '以 http:// 為開始的正確貨品網址' || !isHTTPAddress(inputGoodsLink)) {
  13.             alert('請輸入以 http:// 為開始的正確貨品網址.');
  14.             $('#InputGoodsLink').select();
  15.             return false;
  16.         }
  17.         else if (inputGoodsQuantity == '') {
  18.             alert('請輸入代購總數量.');
  19.             $('#InputGoodsQuantity').focus();
  20.             return false;
  21.         }
  22.         else if (inputGoodsQuantity == '總數量' || !isNumber(inputGoodsQuantity)) {
  23.             alert('請輸入代購總數量.');
  24.             $('#InputGoodsQuantity').select();
  25.             return false;
  26.         }
  27.         else if (inputGoodsRequirement == '產品顏色, 大小或形狀的要求') {
  28.             var oldBox = $('#InputGoodsRequirement');
  29.             var newBox = oldBox.clone();
  30.             newBox.attr('value', '');
  31.             newBox.insertBefore(oldBox);
  32.             newBox.select();
  33.             oldBox.remove();
  34.             if (inputGoodsSpecific == '指定要求的店舖') {
  35.                 var oldBox = $('#InputGoodsSpecific');
  36.                 var newBox = oldBox.clone();
  37.                 newBox.attr('value', '');
  38.                 newBox.insertBefore(oldBox);
  39.                 newBox.select();
  40.                 oldBox.remove();
  41.             }
  42.         }
  43.         else if (inputGoodsSpecific == '指定要求的店舖') {
  44.             var oldBox = $('#InputGoodsSpecific');
  45.             var newBox = oldBox.clone();
  46.             newBox.attr('value', '');
  47.             newBox.insertBefore(oldBox);
  48.             newBox.select();
  49.             oldBox.remove();
  50.         }

  51.         $('#InputGoodsAdd').attr('value', 'Please Wait...');
  52.         $('#InputGoodsAdd').attr('disabled', 'disabled');
  53.     });
  54. });
The reason that I need to show a dialog to user that they use a button to confirm, but the button is ASP.NET button and using JQuery UI, I want to set value = Please Wait and disabled the button once user has press this button so that can prevent double-click request to server and set message Please Wait ...

I think this is not bug but I am not so sure how to do it correctly, could anyone fix this for me? attachment is my dialog box that showing to user.