I have Zend_Form_Element_Multicheckbox and I want to put some of its elements in readonly state, how to do it?
$colId = new Zend_Form_Element_MultiCheckbox('colId'); $colId->setLabel('Col ID') ->setMultiOptions(array_flip(array('sadda', 'asss'));
I think the following should work:
$colId ->setMultiOptions(array_flip(array('sadda', 'asss'))) // three closing-brackets ->setAttrib('disable', array('sadda', 'asss'));
It works; be sure to use disable, not disable in your setAttrib.
Source: https://habr.com/ru/post/1708354/More articles:How can we transparently serialize Dataset ExtendedProperties in WCF? - serializationJquery auto-complete in dialog errors - jqueryIdentify the right developer tool based on real needs - version-controlJUnit MaxCore by ant - junithow to solve a VERY BIG URL problem for a hyperlink ... with jQuery or Javascript calling any perl, php etc. script on the back - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1708355/ruby-map-characters-to-integers-in-2d-array&usg=ALkJrhh6e0pmSWpRoNPrxGWbJj66Va-SrQIs there an easy way to add a custom migration script to SQL Compare? - sqlhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1708357/how-do-i-know-which-version-current-svn-repository-is&usg=ALkJrhjQAtN8wd1KaLXc-UoipIpStv6ZBQEclipse RCP Application - Create a window programmatically - eclipseWhy does the Event Log EntryWritten event never fire? - c #All Articles