how to display different input box depend value option select
<p>in need your help. i have option select:</p>

<p>Relationship:</p>

<pre><code>&lt;?php
$relationship=array(
''=&gt;'Choose relationship',
'child'=&gt;'child',
'guardian'=&gt;'guardian',
'parent'=&gt;'parent',
'wife'=&gt;'wife',
'husband'=&gt;'husband',
'mother in law'=&gt;'mother in law',
'futher in law'=&gt;'futher in law'
);

echo form_error('relationship');&lt;br /&gt;
echo form_dropdown('relationship', $relationship, set_value('relationship'), array('id'=&gt;'relationship'));
?&gt;
</code></pre>

<p>how can i make input box to appear if selection is made? example if i choose mother i want input box for address to appear, if i choose child i want input box for birth date to appear... </p>