Subject: RE: radio button default From: "Lee Barwick" <lee.barwick@xxxxxxxxxxxxxxx> Date: Thu, 28 Sep 2000 09:15:10 +0100 |
In my experience I've found that just specifiying a checked attribute irrespective of it's value works (in IE4+ anyway). For example: <input type="radio" name="KeyActivity" value="1" checked=""> would created a 'checked' radio button. Therefore if you modify your XSL as something like... yes<input type="radio" name="KeyActivity" value="1"> <xsl:if test="***Your decision goes here***"> <xsl:attribute name="checked"/> </xsl:if> <xsl:attribute name="value"> <xsl:apply-templates select="key-activity"/> </xsl:attribute> </input> This will allow you to choose which radio is checked. If it's always a default then just add the attribute to the <input> element directly. Hope this helps Lee -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of D. Bennion Sent: 27 September 2000 22:24 To: XSL-List@xxxxxxxxxxxxxxxx Subject: radio button default I have searched for this topic everywhere and can't find anything. Does anyone know how to set a radio button to default in xsl/html? Right now I have this: yes<input type="radio" name="KeyActivity" value="1"><xsl:attribute name="value"><xsl:apply-templates select="key-activity"/></xsl:attribute></input> No<input type="radio" name="KeyActivity" value="0"><xsl:attribute name="value"><xsl:apply-templates select="key-activity"/></xsl:attribute></input></td> I tried checked after value but it wouldn't process. An error occurred. Any ideas? thanks. dave __________________________________________________ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list Why not log on and see just how our new factory is coming along. Point your browser to www.metromail-buildingsite.co.uk ******************************************************* The information contained in this e-mail and any files transmitted with it are confidential and intended for the addressee only. If you have received this e-mail in error please notify the originator or telephone 0191 554 6262. This e-mail and any attachments have been scanned for viruses prior to leaving MetroMail but MetroMail will not be liable for any losses as a result of any viruses being passed on. If this e-mail offends in any way please forward it to sysadmin@xxxxxxxxxxxxxxx MetroMail Ltd, Palmer Road, SW Ind Est, Peterlee www.metromail.co.uk ******************************************************* XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
radio button default, D. Bennion | Thread | Re: radio button default, David Carlisle |
Re: Adding attribute to Node, Gary L Peskin | Date | Re: radio button default, Nick Browne |
Month |