kirangentlebreeze1987 Posted February 27, 2011 Report Share Posted February 27, 2011 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 More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now