This is a part from my XSL:
<input>
<xsl:attribute name="data-tn">
RAMPart<xsl:value-of select="../RAMTemplatePartNumber"/>
</xsl:attribute>
<xsl:attribute name="data-cn">
A<xsl:value-of select="Letter"/>
</xsl:attribute>
<xsl:attribute name="data-id">
<xsl:value-of select="../../../RAM/RAMPart1/Id"/>
</xsl:attribute>
<xsl:attribute name="value">
<xsl:value-of select="key('RAMPart1', Letter)" />
</xsl:attribute>
</input>
I would like to use the JS onchange function, so when I change something in the input field, I will get an alert with the data-tn, data-cn, data-id and the old value. How to do that?