whackeroo - 2014-06-25 15:05:22 -
In reply to message 2 from Gianluca Zanferrari
I got this somewhere in the internet and works well:
var d = $('#signature').jSignature("getData", "native");
// if there are more than 2 strokes in the signature
// or if there is just one stroke, but it has more than 20 points
if ( d.length > 2 || ( d.length === 1 && d[0].x.length > 20 ) ){
message.push("A signature is given!");
} else {
errors.push("A signature is required!");
}