I am trying to create a simple web app but my tutor is telling me I cant use jQuery or databases (What he is actually saying is that he wants me to use Javascript alone and have the content in the source).
I am confused how JS alone affects the DOM, can it add/modify elements within the html without refresh (like ajax)?
Here is the example:
I need to create a form starting with a <select>
element:
<select id="Company">
<option>Toyota</option>
<option>Honda</option>
<option>suzuki</option>
</select>
When the object 'Toyota' is selected a new <select>
element needs to appear.
<select id="Model">
<option>Yaris</option>
<option>Corolla</option>
<option>Rukus</option>
</select>
Finally when 'Rukus' is selected a whole lot of information has to show.
<div id="rukus">html</div>
Appreciate the help in advance.