oldschool html within backbase script - selected option is not selected

i am having a problem when trying to mingle
oldschool html with backbase (i.e.
within the <script type="text/backbase+xml" ... section
of a webpage).

the following is not causing maryland to be selected:

<select name="pickup_state"><option value="STATE">STATE</option><option value="DC">DC</option><option value="VA">VA</option><option value="MD" selected="on">MD</option></select>

when that loads, it is supposed to have MD selected by default, but it does not.

note: overall the script is not crashing , it is loading. so i don't know why this is ocurring. any ideas?

also more generally is it allowed to mix old html with backbase BTL tags (as long as the old html is prettied up to be perfectly formatted and perfectly standard xml)?

Hi, try selected="selected"

Hi, try selected="selected" instead of selected="on". This should work.

You can freely code any "old" HTML in your page, as long as it complies to the xhtml standard.
If it does not, you could place b:xhtml tags around it, or place it outside a script section, of which you can have as many as you like, but of course you cannot use the nice Backbase functionality for these pieces then. To place as much code as possible outside script tags could speed up your application, because there is an overhead involved in processing the tags inside a Backbase enabled section, which may not always be necessary.
Cheers, Ghica.

yes,it worked with

yes,it worked with selected="selected".

also thanks for the tips.