$("canvas[name=myCanvas]").index(0).width( $(window).width() );
$("canvas[name=myCanvas]").index(0).height( $(window).height() );
Hello I have three canvas on a page. How can I set up only the first canvas width and height?
And how can I access the third?
Tried:
$("canvas[name=myCanvas]").index(0)
and
$("canvas[name=myCanvas]")[0]
not worked
Use the method
eq()$("canvas[name='myCanvas']").eq(0).width(...).height(...)