Posted By

skrypets on 12/25/10


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

xujianxin


Submit once


 / Published in: JavaScript
 

  1. EventUtil.addHandler(form, "submit", function(event){
  2. event = EventUtil.getEvent(event);
  3. var target = EventUtil.getTarget(event);
  4. //get the submit button var
  5. btn = target.elements["submit-btn"];
  6. //disable it
  7. btn.disabled = true;
  8. });

Report this snippet  

You need to login to post a comment.