function colour_callback()
{
return '<select name="colour" id="colour">
<option value="null">Please select</option>
<option value="Beige">Beige</option>
<option value="Black">Black</option>
<option value="Blue">Blue</option>
</select>
';
}
Thanks.
⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠
Posted 21 April 2012 - 08:51 AM
function colour_callback()
{
return '<select name="colour" id="colour">
<option value="null">Please select</option>
<option value="Beige">Beige</option>
<option value="Black">Black</option>
<option value="Blue">Blue</option>
</select>
';
}
Posted 21 April 2012 - 09:29 AM
function colour_callback($value = '')
{
$this->load->helper('form');
$options = array('' => 'Please select', 'Beige' => 'Beige' , 'Black' => 'Black', 'Blue' => 'Blue');
return form_dropdown('colour', $options, $value,"id='color'");
}
Posted 21 April 2012 - 09:37 AM