xsl-list
[Top] [All Lists]

RE: input type radio checked

2003-03-04 00:34:46
Hi

<xsl:for-each select="registro">
<input type="radio" name="votacionvalor" value="{valorrespuesta}">

    <xsl:if test="position() = 1">
      <xsl:attribute name="checked">checked</xsl:attribute>
    </xsl:if>
   </input>

<xsl:value-of select="respuesta"/><br />
</xsl:for-each>

in this method i load 25 input radio type.
how can i always the fist radio put in checked mode?
(<input type="radio" name="votacionvalor" value="{valorrespuesta}"
checked="checked"  />)
only in the fist radio.
is posible?
how?
thanks

Cheers,

Jarno - Neurotic Fish: Wake Me Up

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>