webdesign india
08-04-2012, 12:22 PM
How to select multiple value in dropdown without checkboxes?
|
||||
How to select multiple value in dropdown without checkboxes?webdesign india 08-04-2012, 12:22 PM How to select multiple value in dropdown without checkboxes? new_comer 08-18-2012, 03:31 PM Hoping this help: <select size="1" name="D1"> <option value="a">a</option> <option value="b">b</option> <option value="c">c</option> </select> sh4rd 08-18-2012, 06:03 PM The point of a dropbox (<select>) is that the user can only select 1 item/option. You could try making some custom JavaScript & CSS dropbox that records items you've clicked on. anilgangwar 08-29-2012, 10:03 AM Precisely! Then hold the control button on your keyboard to select as many as you want. If you care to keep the code up to date use: <select name="somename" multiple="multiple"> And, if I'm not mistaken, you need to add an empty set of brackets to the name of the select: <select name="somename[]" multiple="multiple"> Without the brackets you will only get the value of the last selected option. The brackets force the value to be an array, which can be accessed by: foreach($_POST['somename'] as $val) { print $val; } |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum