Welcome Guest, Not a member yet? Register   Sign In
Multiselect problem
#4

[eluser]xwero[/eluser]
My modification removes the $multiple line entirely. The only way to add the attribute is to put it in the extra parameter.

IMO the count of the selected options makes no sense as the user is free to choose none or one option(s). It's not up to the html generating function to decide whether it is a single or a multiple dropdown.
It would more sense if the multiple variable is selected as follows
Code:
$multiple = (strpos($extra, 'size') !== FALSE && strpos($extra, 'multiple') === FALSE) ? ' multiple="multiple"' : '';
Most of the time if you show a select as a list it is because you can select multiple options.


Messages In This Thread
Multiselect problem - by El Forum - 03-17-2009, 02:42 AM
Multiselect problem - by El Forum - 03-17-2009, 02:51 AM
Multiselect problem - by El Forum - 03-17-2009, 03:05 AM
Multiselect problem - by El Forum - 03-17-2009, 03:34 AM
Multiselect problem - by El Forum - 03-17-2009, 04:21 AM
Multiselect problem - by El Forum - 03-17-2009, 04:33 AM
Multiselect problem - by El Forum - 03-17-2009, 04:50 AM
Multiselect problem - by El Forum - 04-28-2009, 02:51 PM
Multiselect problem - by El Forum - 04-29-2009, 07:22 AM
Multiselect problem - by El Forum - 06-15-2009, 06:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB