Jump to content

How to assign a VARIABLE into an INPUT attribute?


iamgoondu

Recommended Posts

Hi,I had a variable called sSlotID. I would like to pass the variable into the NAME OF THE INPUT TEXTBOX, how can I do it?Thanks alot!<xsl:for-each select="Input/SelectedSlots/SelectedSlot"><script language="JScript"><![CDATA[var sSlotID = "]]><xsl:value-of select="SlotID"/><![CDATA[";]]>document.write(sSlotID)</script> <TR><TD align = "center" colspan="3" ><font size="1"> <xsl:value-of select="sSlotID"/> </font></TD> <TD colspan="3"><INPUT id="txt" type="textbox" name="SlotID" ></INPUT></TD></TR> </xsl:for-each>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...