You want to add an asterisk to required fields, huh?

There are many approaches to accomplish this. One among them is setting the requiredSuffix option to the label decorator of the form element. Assuming $element is your Zend_Form_Element object:
<?php
$element->getDecorator('label')->setOption('requiredSuffix', ' * ');
?>Another option is to add the * while setting the label.
<?php
$element->setLabel('My Label *')
?>The third, which I am currently using in one of my Zend Framework powered applications is adding * using CSS. The default label decorator generates the following mark-up.
Today, we will learn how to toggle the 'disabled' attribute of input elements in a div block using jQuery.
The 'disabled' attributed is set to HTML input elements where user input is not desirable. When 'disabled' attribute is set to an input element, it is rendered read only. The read only input elements make lot of sense in various contexts.
<input type="text" name="elementName" disabled="disabled" />
Wouldn't it be more fun if we play around with the 'disabled' attribute programmatically? We are going to do exactly the same in this example.
Recent comments
11 hours 16 min ago
15 hours 27 min ago
16 hours 16 min ago
20 hours 49 min ago
1 day 8 hours ago
3 days 3 hours ago
3 days 5 hours ago
5 days 23 hours ago
1 week 2 days ago
1 week 3 days ago