Is it possible to use jQuery with the HTML5 <canvas>
element? Or do I have to do it with plain JavaScript?
I'm just wondering, because I think I could save a lot of time with using jQuery, but I have no clue about the <canvas>
element's uses yet, so it may be completely impossible!
Anyone know if I can use jQuery for this?
the answer would be yes. you need to use the plain JavaScript.. it gives you access to the canvas using the jQuery formatting that we are used for .
The HTML <canvas> element is used to draw graphics on a web page. The graphic to the left is created with <canvas> . It shows four elements: a red rectangle, a gradient rectangle, a multicolor rectangle, and a multicolor text.
<canvas> is an HTML element which can be used to draw graphics via scripting (usually JavaScript).
The team announced that the cross-platform jQuery Mobile project under its umbrella will be fully deprecated as of October 7, 2021. New technologies for mobile app development have evolved since this project was launched in 2010, so we're encouraging developers to plan for this jQuery Mobile transition.
You can use jQuery to select
the canvas element, but you'd have to use its own methods. A decent start would be https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With