sinha
Jul 14th, 2006, 03:09 PM
Can I get the Javacript code for check all the Child checkboxes, on clicking the Master check box.(Just like hotmail does) The child checkboxes are generated with stylesheet code and its not HTML.
This is the stylesheet code (in an .asp page) to generate the child checkboxes.
Following is the stylesheet in an .asp page
<XML id='listXSL'>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<table width="100%">
<xsl:for-each select="/itemlist/item">
<tr>
<td width="40" class="fmText4"><input type="checkbox" name="chkChild" value="chkChild"><xsl:attribute
name="name">chk<xsl:value-of select='id'/></xsl:attribute></input></td>
</tr>
</xsl:for-each>
</table>
</xsl:template>
</xsl:stylesheet>
</XML>
This is the stylesheet code (in an .asp page) to generate the child checkboxes.
Following is the stylesheet in an .asp page
<XML id='listXSL'>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<table width="100%">
<xsl:for-each select="/itemlist/item">
<tr>
<td width="40" class="fmText4"><input type="checkbox" name="chkChild" value="chkChild"><xsl:attribute
name="name">chk<xsl:value-of select='id'/></xsl:attribute></input></td>
</tr>
</xsl:for-each>
</table>
</xsl:template>
</xsl:stylesheet>
</XML>