DEV Community

SHRAY SALVI
SHRAY SALVI

Posted on

2 1

Select button in html

So basically I created a web page on which if a button (with id = 1) is clicked then django send an html button (with id = 2) to that web page. Now, according to static files button 2 is not going to be selected by getElementById. So my question is how could I select button (with id = 2) to do another task on clicking that button (with id 2) using js specifically.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay