Show html when a list in the dropdown is selected
<!DOCTYPE html>
<html>
<body>
<form id="myForm">
<select id="selectNow">
<option>One</option>
<option>Two</option>
<option>Three</option>
</select>
<input type="button" onclick="display()" value="Click">
</form>
<p>Select and click the button</p>
<script>
function display() {
var obj = document.getElementById("selectNow");
document.write(obj.options[obj.selectedIndex].text);
}
</script>
</body>
</html>
Also in HTML:
- how to embed my website into Discord
- copyright symbol html
- resize image html
- Show html when a list in the dropdown is selected
- html script mime type
- html svg
- a target _blank
- background image html
- how to start using jQuery CDN
- nav bar activate in jinja
- Html tabulation
- background position in html
- html input types
- pdf to html
- textarea
- python parse html
- jquery replace innerhtml
- html auto slideshow
- input type for phone number in html
- how to make new line in html paragraph
- display div while load
- regex remove html tags
- select all text in textarea javascript
- membuat footer html