Jump to content

problem in option selected


kirangentlebreeze1987

Recommended Posts

Hello friends i have a drop down which has 3 values in it but 1 option should be highlighted upon the page load but the thing is not happening with my codethis is my piece of xslt code

<xsl:if test="$nodeType='dropdown'">						<select>							<xsl:for-each select="/employee/employeeForm/field/listOptions/node()">								<xsl:variable name="getdropNode">									<xsl:value-of select="node()"/>								</xsl:variable>									<xsl:choose>									<xsl:when test="$getdropNode=$childValue">					<option selected="$getdropNode">					  <xsl:value-of select="$getdropNode"/></option>									</xsl:when>									<xsl:otherwise>					<option>					  <xsl:value-of select="$getdropNode"/>					</option> 				  </xsl:otherwise>									</xsl:choose>							  </xsl:for-each> 							</select>					</xsl:if>

please help me in solving this issue

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...