I am new to stackoverflow with a coding question. How do you create a button that is click able and becomes a list that looks like a div? The only example I can think of that people do this is in forum signatures. Like click to show content. Thanks for all of your help. I would also like the know how to create a clickable button that opens up a program, or that starts to ask you questions. I know the console.log(); . I want it to be like a button that when clicked starts an coded program. Using console.log();. Thanks for everyones help, I am fairly new at coding and have already learned HTML, CSS, and now JavaScript using CodeAcademy but they dont teach you the drop down button.
The way this is usually done is that there's a hidden div (with the dropdown content) when the link/button is clicked the JavaScript code catches it and then the div is shown. What you can also do of course is working with CSS hovers. Good luck! |
|||||||||
|
<select>
element. – ZippyV Jun 14 '13 at 15:10