I have a row that includes a form selection of product styles and is
being updated via an ajax->observeField. The update is working great,
but I would like to be able to hide the row if no styles are returned
by the Ajax request.
My view code is:
<tr id="style">
<td>Product Style:</td>
<td>
<?php
echo $ajax->div('pstyle_div');
echo
$form->select('Product.product_style_id',
array($pstyle_options),
null,
array('id' =>
'pstyle_sel'),
null);
echo $ajax->divEnd('pstyle_div');
?>
</td>
</tr>
I'd like to hide the <tr id="style"> element above if $pstyle_options
is empty.
Does anyone know a good way to do this?
Thanks!
--
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=.