a11yTips — Use a button with SELECT elements to perform an…

Use a button with SELECT elements to perform an action

Make sure drop down menus options are not triggered until a button is activated

Select drop down (combo box) menus are infamous for triggering unexpected actions, as soon as one of their options has focus set to it. Given how popular the behaviour has grown over the years, authors might be led to believe that this is a recommendable approach. Authors who are mindful of their users’ experience will let users control when an action is performed, rather than having the action occur as a side effect of choosing a value for the select element. This way, inspecting the different values of the select element, or accidentally choosing the wrong value will not unexpectedly cause the action to occur. Instead, the trigger will only be called into play when users are satisfied with their choice and select the button to perform the action.

To do so, simply make sure scripts are not used to trigger the SELECT option as soon as focus is set to it. Provide a submit button next to the drop down menu, so users ultimately end up being the ones deciding when information is going to be processed. This [...]

Read article at dboudreau.tumblr.com

Article Taxonomies

Categories:
Fatal error: Uncaught Error: Object of class WP_Error could not be converted to string in /home/webable/www/www/wp-content/themes/webable/content-mcm.php:65 Stack trace: #0 /home/webable/www/www/wp-includes/template.php(812): require() #1 /home/webable/www/www/wp-includes/template.php(745): load_template('/home/webable/w...', false, Array) #2 /home/webable/www/www/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) #3 /home/webable/www/www/wp-content/themes/webable/single-mcm_article.php(15): get_template_part('content-mcm') #4 /home/webable/www/www/wp-includes/template-loader.php(106): include('/home/webable/w...') #5 /home/webable/www/www/wp-blog-header.php(19): require_once('/home/webable/w...') #6 /home/webable/www/www/index.php(17): require('/home/webable/w...') #7 {main} thrown in /home/webable/www/www/wp-content/themes/webable/content-mcm.php on line 65