How can I validate I have drawn something in jSignature panel or not?
javascript, jquery
Solution
if( $sigdiv.jSignature('getData', 'native').length == 0) {
alert('Please Enter Signature..');
}
Problem
`jSignature` is having canvas and it has a class. How can I validate jSignature whether I have drawn something or not ? I have added one bind for click event. ``` $sigdiv.bind('click', function(e) { $("#num_strok").val(parseInt($("#num_strok").val()) + 1); }); ``` Problem is even I click some corner also `num_strock` get increases. And for some dragging it will not increase. I have tried in Google whether it has any built in `isEmpty` function is there or not. But I have not found anything.