Categories > TinyButStrong general >

selected with no value still shows a lign, even with magnet

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Cactusbone
Date: 2006-07-04
Time: 04:43

selected with no value still shows a lign, even with magnet

when using <option>[defaut;magnet=option;ope=html;select]</option>
it shows a <option selected></option> when defaut is empty (defaut="")
how should i do that ? options are populated using mysql with tbs, so i don't have access to data in there before the user chooses one .
i do not want that empty line to show ...

any suggestion ?
By: Skrol29
Date: 2006-07-04
Time: 11:41

Re: selected with no value still shows a lign, even with magnet

I Cactusbone,

Parameter "magnet" is processed after parameter "ope", but in your case,the value is no longer empty avec doing the select.

You can walkaround this problem with something like this:
<option value="[default;magnet=option]">
  [defaut;ope=html;select]
</option>
By: Cactusbone
Date: 2006-07-04
Time: 21:49

Re: selected with no value still shows a lign, even with magnet

thx :)