184
rated 0 times
[
185]
[
1]
/ answers: 1 / hits: 36568
/ 10 Years ago, fri, july 25, 2014, 12:00:00
Currently I'm trying to create a button which creates a popup box which in turn has a drop down list, like in here. However, I'm having trouble figuring out how to put the drop down list inside the pop up window. Can anyone help?
I currently have a pop up window with a form, but I want to change this form into a drop down list. refer this jsfiddle
<p>Do you have an agreement or a conflict?</p>
<button onclick=myFunction()>Try it</button>
<p id=demo></p>
<script>
function myFunction() {
var person = prompt(Please enter your name, );
}
</script>
More From » html