I need that when $DsTpVeiculo
is Horse Truck input
is filled out and shows a message asking to fill, and if it is Truck or Bitruck it should not be filled with a message as well. Any message in JS.
Code:
<?php
if($DsTpVeiculo == 'Cavalo Truck'){ ?>
<td><input type="text" id="carreta" name="NrPlacaCarreta" value="<?php echo $NrPlacaCarreta; ?>"/></td>
<?php
}elseif($DsTpVeiculo == 'Bitruck' || $DsTpVeiculo == 'Truck'){ ?>
<td><input type="text" id="carreta" name="NrPlacaCarreta" value="<?php echo $NrPlacaCarreta; ?>"/></td>
<?php
}
?>