PDA

Click to See Complete Forum and Search --> : Javascript Code


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>

mendhak
Jul 15th, 2006, 09:03 AM
I've already answered your post in the HTML forum. Do not crosspost, it's extremely annoying and does more damage than good for you.

sinha
Jul 17th, 2006, 10:59 AM
Extremely sorry! Will not do this again. Thanks for the help.