Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: using JS to change HTML tags?
08-13-2008, 04:14 PM #1
- Join Date
- Jul 2008
- Thanked 1 Time in 1 Post
using JS to change HTML tags?
Is this possible, and if so how should i do it?
i can switch tag elements around (change style properties for example) or even change the inner HTML (a + becomes a -)
but what i want to do is have a button which changes the html on the whole page
<textarea id="textarea" cols="15" rows="1" name="startdate" ><xsl:value-of disable-output-escaping="yes" select="comment"/> </textarea>
[edit- the 'name' is diferent for all 120 ish textboxes on the page!]
<div style="overflow:auto; width:300px; height:100px;"><xsl:value-of disable-output-escaping="yes" select="comment"/> </div>
and back if it is needed.
a plus would be doing it without losing whatever new text was inputed into the text area and displaying that new text in the div as well as submitting it as the form.
page in question if it helps:
source available in this directory (XSL file)
Last edited by Corwin; 08-13-2008 at 04:24 PM.