I have a bunch of static HTML files containing text data:
/a.html
/b.html
/c.html
and the select / drop down box ( #loadExternal) on my main page.
Using jQuery, how can I use an event onChangeto select / drop down menu to call the appropriate external page to load into my containerDIV?
<html>
<select id="loadExternal">
<option id="a" value="a" selected="selected">Load a.html</option>
<option id="b" value="b">Load b.html</option>
<option id="c" value="c">Load c.html</option>
</select>
<div id="container">
</div>
</html>
source
share