View Single Post
  #2 (permalink)  
Old 03-03-2007, 03:35 PM
crazyinstinct's Avatar   
crazyinstinct crazyinstinct is offline
Newbie
 
Join Date: Mar 2007
Age: 20
Posts: 7
Rep Power: 0
crazyinstinct is on a distinguished road
Default

Your button:
<input type = submit id = "btnSave" onclick = "disableButton()">

The Javascript function:
function disableButton() {
var btnSave = document.getElementById('btnSave') ;
btnSave.disabled = true ;
yourformname.submit();
}


I hope this solves your problem.
Reply With Quote