Difference between revisions of "Multiselect"

From Level Access Web Labs
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
The multiple attribute cannot be used with size 1 for combo box - only listboxes.
 
<html>
 
<html>
 
<body>
 
<body>
  
 
<form action="/action_page.php">
 
<form action="/action_page.php">
<select name="cars" size="1">
+
<select name="cars" multiple>
 
   <option value="volvo">Chevy</option>
 
   <option value="volvo">Chevy</option>
 
   <option value="saab">Ford</option>
 
   <option value="saab">Ford</option>
Line 12: Line 13:
 
</form>
 
</form>
  
<p>Ctrl (windows) / Command (Mac) to select multiple options.</p>
+
<p>Use shift - non-contiguous or Control non-contiguous (Windows) or Command (Mac) to select multiple options.</p>
  
 
</body>
 
</body>
 
</html>
 
</html>

Latest revision as of 14:19, 7 October 2019

The multiple attribute cannot be used with size 1 for combo box - only listboxes.

Use shift - non-contiguous or Control non-contiguous (Windows) or Command (Mac) to select multiple options.