如果 $row_thumbs['Listino 9'] 中包含的价格不为空,我想用“添加到购物车”按钮显示这个 div。那怎么能做到呢?jQuery?
<div id="button" style="padding: 10px 0px 10px 0px;">
<form name="eCart1_1_ATC_<?php echo $row_thumbs["Cod."]; ?>" method="POST" action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""; ?>">
<input type="hidden" name="eCart1_1_ID_Add" value="<?php echo $row_thumbs["Cod."]; ?>" >
<input type="hidden" name="eCart1_1_Quantity_Add" value="1" size="2" >
<input type="image" src="images/acquista.png" width="95" border="0" class="eC_ImageButton" value="Aggiungi al carrello" name="eCart1_1_ATC"></form>
</div>