thread-pond / signature-pad

A jQuery plugin for assisting in the creation of an HTML5 canvas based signature pad. Records the drawn signature in JSON for later regeneration.
BSD 3-Clause "New" or "Revised" License
730 stars 290 forks source link

Disable submit button? #169

Open eriktobben opened 8 years ago

eriktobben commented 8 years ago

Hi!

Does anyone know how I can disable the submit button, and display a text, ie. "Please wait" after a user has clicked the submit button?

I have tried with onclick and jQuery, and that works, problem is when this code is added the SignPad validation and submission does not work.

Anyone know how to do this?

thomasjbradley commented 8 years ago

You could try using the validateForm() API method to execute the validation when you want instead of relying on Signature Pad running the validation.

waqaransari commented 8 years ago

By Using this code you can perform this task code is here

$(function() { $(".load").click(function(){ $(this).button('loading').delay(3000).queue(function() { $(this).button('reset'); $(this).dequeue(); });
}); });