Pete Winter
asked on
show / hide table row if select menu equals 1
How can I only show a table row based on the the value of the attached select menu being 1. i.e. So if the value is not 1 it should hide the table row?
Select menu code attached.
Select menu code attached.
<select name="ink_brand_id" id="ink_brand_id">
<?php
do {
?>
<option value="<?php echo $row_rs_ink_brand['id']?>"><?php echo $row_rs_ink_brand['ink_brand']?></option>
<?php
} while ($row_rs_ink_brand = mysql_fetch_assoc($rs_ink_brand));
$rows = mysql_num_rows($rs_ink_brand);
if($rows > 0) {
mysql_data_seek($rs_ink_brand, 0);
$row_rs_ink_brand = mysql_fetch_assoc($rs_ink_brand);
}
?>
</select>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER