$form = Form::select('numbers', 'none', array( // options '1' => 'One', '2' => 'Two', '3' => 'Three', '4' => 'Four', ), array( // attributes 'selected' => '2' ) );
<select name="numbers" id="form_numbers"> <option value="1">One</option> <option value="2">Two</option> <option value="3">Three</option> <option value="4">Four</option> </select>
<option value="2" selected="selected">Two</option>
Creates an html select element. It can be set using the fieldname, it's selected value(s), it's options and tag attributes or all in one attribute for the first arguement.
Field value or array of values when multiselect, will be ignored when the first param is an array.
It looks like you're new here. If you want to get involved, click one of these buttons!