HI to everyone,
I am fully confused.
I have a selectbox with dynamic values. No body what value will come in that select box, based on that value , I want to do hide and show.
How to do that?
Here I included my dynamic select box,
<select name='category' id='category'>
<option value =''>Select category</select>
<?php
$a = mysql_query("SELECT * FROM cat_table")or die(mysql_error());
while($a_res = mysql_fetch_array($a))
{
?>
<option value ='<?php echo $a_res['cat_id']?>'><?php echo $a_res['cat_name']?></select>
<?php } ?>
</select>
Here, in this select box I will get dynamic select box value,
But I can not assume what value I am getting, But based on that
value I want to hide or show some <div>.
How to do that?
I am fully confused.
Can you give me some examples?