I am puzzled by a new error.
I render a form with selects. No big deal there. The options to select are pulled from the database and the one selected is correct if user selected it previously.
But for some reason now the HTML:
<select id="Skill115" data-size="auto" data-field="115" name="data[Skill][115]">
<option value="">None</option>
<option selected="selected" value="1">Less than 6 Months</option>
<option value="2">6 Months - 1 Year</option>
<option value="3">1 - 5 Years</option>
<option selected="selected" value="4">5 - 10 Years</option>
<option value="5">10+ Years</option>
</select>
You will notice there are 2 "selected"
DATABSE record:
Id, user_id, skill_id, area_id, year_id
'4', '523bc67c-b194-4e7e-8ba7-38ec29ee23f4', '115', '11', '1'
So as shown by the HTML, year_id selected is 1, database has the record of 1 for skill_id 115.
So where is <option selected="selected" value="4">5 - 10 Years</option> getting its info from?
Has anyone seen anything like this?
Any ideas?
Thanks,
Dave
No comments:
Post a Comment