Categories > TinyButStrong general >

prb with selected and empty value

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: achille
Date: 2004-01-21
Time: 21:29

prb with selected and empty value

here is the html code :
        <select name="famille" id="famille">
                <option value="">Famille :</option>
                <option value="[famille.id]">[famille.nom;block=opt]</option>
                <option selected>[var.la_famille;selected]</option>
        </select>

famille is an array of values coming from a database. $la_famille is the value I want to display. If $la_famille =="", the tbs does'nt select the first row, but instead create a new empy row at the end.

The problem is this code was working with tbs 1.81, and I seen nothing in the changlod that could explain this....
By: Skrol29
Date: 2004-01-22
Time: 00:14

Re: prb with selected and empty value

hi Achille,

Ok, that's a small bug.
You'll have a fix in few hours.
By: Skrol29
Date: 2004-01-22
Time: 02:04

Re: prb with selected and empty value

Ok, you have it.