Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 703125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:47:49+00:00 2026-05-14T03:47:49+00:00

I am creating a Zend Form to allow the user to change the current

  • 0

I am creating a Zend Form to allow the user to change the current Locale from a list saved in my DB. I would like to know how to add more attribs to the option list.

$obj_locales_select = new Zend_Form_Element_Select('sel_locale');
$obj_locales_select->setLabel('form-params-language-changelocale-sel_locale-label');
$obj_locales_select->setMultiOptions($this->_arr_locales);
$obj_locales_select->setValue($this->_str_selected_locale);
$obj_locales_select->setRequired(true);
$obj_locales_select->setAttrib('tabindex', '100');

The $this->_arr_locales is just an associative array with key – values. But I want, in example, to add a title attrib to each option generated, so when the user’s mouse is over an option, the browser displays a tip with additional info about that option, or some other standard attribs (according to the w3schools OPTION tag).

Thanks for help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T03:47:49+00:00Added an answer on May 14, 2026 at 3:47 am

    ZF does not support title attribute for Zend_Form_Element_Select options. You should write custom view helper to do that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a Zend Form using Dojo elements and I would like to
When creating form elements with Zend (using Zend Studio for Eclipse), I'd like some
I'm creating a Zend Form which includes a Zend Form Element File to allow
I'm creating an email form element like so (inside a Zend Form): //create e-mail
I know for example the Zend Framework has some capability for creating form elements
I am creating checkbox elements in Zend Form like this: $element = $this->CreateElement('checkbox', 'CheckIt');
I am creating a web application using zend, here I create an interface from
I'm working on creating a domain layer in Zend Framework that is separate from
I'm doing this tutorial: http://www.phpeveryday.com/articles/Zend-Framework-Database-Creating-Input-Form-P494.html We are building a simple input form using POST
I have been creating user login form using the various groupcodes, the user login

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.