I have the following working code:
ctx = document.getElementById("canvas").getContext('2d');
Is there any way to re-write it to use $
? Doing this fails:
ctx = $("#canvas").getContext('2d');
See Question&Answers more detail:osI have the following working code:
ctx = document.getElementById("canvas").getContext('2d');
Is there any way to re-write it to use $
? Doing this fails:
ctx = $("#canvas").getContext('2d');
See Question&Answers more detail:os