Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to set 'selected' value in select box dropdown list?



How to set 'selected' value in select box dropdown list?..

Answer / Ankush Soni

To set the 'selected' value in a select box dropdown list, use the addMultiOption() method provided by Zend_Form_Element_Select:
```php
$select = new Zend_Form_Element_Select('fieldname');
$select->addMultiOption('option1', 'Option 1')->setValue('option1');
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Zend Interview Questions

How can I customize the appearance of forms generated by zend_form?

1 Answers  


How to include css and js from the controller in the zend framework?

1 Answers  


What is autoloader in zend framework?

1 Answers  


What is zend engine?

1 Answers  


What is bootstrapping?

1 Answers  


Explain what is being presented by the decorators?

1 Answers  


How to write a program to show the function of action helper?

1 Answers  


How to render view file from controller in zend framework?

1 Answers  


How to install form component in zend framework?

1 Answers  


What are the features of zend framework?

1 Answers  


Explain the features of mvc in zend framework?

1 Answers  


How to use update statemnet in zend framework?

1 Answers  


Categories