Search found 1 match

by 22walter_m
02 Apr 2019, 09:40
Forum: Designing Solutions Through Programming
Topic: Identifying Javascript
Replies: 1
Views: 1060

Identifying Javascript

Is the section below javascript or simply a css element?

Code: Select all

<script>
document.getElementById("myBtn").onclick = function() {myFunction()};

function myFunction() {
  document.getElementById("myDropdown").classList.toggle("show");
}
</script>