""オプションを次のselectステートメントのデフォルトオプションにしたいのですが、デフォルトではそのオプションにはなりません。私は<OPTION value="" selected="selected"></OPTION>
を試して、それは動作しません。どんなアイデアでも大歓迎です。選択時に何かをデフォルトにする方法がわかりません
<td class="lblhd">
<SELECT tabindex="71" ID="PS_FORM/MARKET_DATA/Last_Sale_Price_text" NAME="PS_FORM/MARKET_DATA/Last_Sale_Price_text" onchange="last_sale_price_dropdown();">
<OPTION value="" ></OPTION>
<OPTION value="Subject prior sale price/date was not available in public records">
<xsl:if test="PS_FORM/MARKET_DATA/Last_Sale_Price_text = 'Subject prior sale price/date was not available in public records'">
<xsl:attribute name="selected">
<xsl:value-of select="true" />
</xsl:attribute>
</xsl:if>
Subject prior sale price/date was not available in public records.
</OPTION>
<OPTION value="Subject prior sale price/date was not available in MLS">
<xsl:if test="PS_FORM/MARKET_DATA/Last_Sale_Price_text = 'Subject prior sale price/date was not available in MLS'">
<xsl:attribute name="selected">
<xsl:value-of select="true" />
</xsl:attribute>
</xsl:if>
Subject prior sale price/date was not available in MLS.
</OPTION>
</SELECT>
</td>
おかげ
私は 'last_sale_price_dropdown()'があなたの問題がどこにあるのだろうと思っています。 –
'その機能はすべてチェック2フィールドであり、誰かがオプションを選択するようにすることを望むかもしれません。 – Daren