Uncaught ReferenceError: $ is not defined

Hi,

I am getting this error when using:

function uploadPicture(canvas) { var dataURL = canvas.toDataURL("image/jpeg", 1.0); $.ajax({ type: "POST", url: "webcam_capture.php", data: { imgBase64: dataUrl } }).done(function(msg) { console.log('saved'); alert("Picture Saved: "+msg); // Do Any thing you want }); }

What library do I need to make it work ?

That is Jquery code.

I thought so but how can I make it work ?

You can start by posting the rest of the code.

I just had to include :

Sponsor our Newsletter | Privacy Policy | Terms of Service