I am trying to insert further text into a HTML page based on the option selected from a dropdown box.
For example, if a user selects 'UK' from the dropdown list, directly beneath I would like the text 'The capital city of the UK is London'.
The additional text is a paragraph long, would it be better if the additional text was added from a seperate HTML file, in order to reduce the main HTML page file size?
I have found the following link, will this be good for 15 paragraphs text, one for each of the 15 values.
<!DOCTYPE html>
<html>
<body>
<form action="action_page.php">
<select name="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="fiat">Fiat</option>
<option value="audi">Audi</option>
</select>
<br><br>
<input type="submit">
</form>
</body>
</html>
Source: http://www.w3schools.com/html/tryit.asp?filename=tryhtml_elem_select
I can't seem to find the PHP file though from the above example.
Thanks very much for reading.