Welcome Guest, Not a member yet? Register   Sign In
Cannot assign html id attribute to select objects via form_dropdown() helper method
#1

[eluser]axiom82[/eluser]
Helper Method:
Code:
<? echo form_dropdown('can_assign_id', array(0 => 'No', 1 => 'Yes'), '0', " id=\"213\"" ?>

Result:
Code:
<select name="can_assign_id">
<option value="0" selected="selected">No</option>
<option value="1">Yes</option>
</select> id="213"

Expected Result:
Code:
<select name="can_assign_id" id="213">
<option value="0" selected="selected">No</option>
<option value="1">Yes</option>
</select>

An array with key/value pairs for attributes would be awesome.


Messages In This Thread
Cannot assign html id attribute to select objects via form_dropdown() helper method - by El Forum - 01-18-2010, 09:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB