0

How to ..?

Hi !! How can I write a code that lets me taking a picture or maybe the current address using HTML, CSS and of course JavaScript? It's like when you click on a link or smthg, it's actually a request to take a pic... I reallyyyyy need that so please help me

22nd Apr 2020, 3:19 AM
Feres Daghrour
Feres Daghrour - avatar
1 Resposta
0
I can't get your question properly. You can use Toggle method of jquery. <button id="btn"/> <img id="img" src=""/> $("#btn").click(function(){ $("#img").toggle(); }); When click the button it will show image and if you click second time it'll be hide. Thanks!
22nd Apr 2020, 7:03 AM
Shaili Shah
Shaili Shah - avatar