Xforms and javascript

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Xforms and javascript

spark86
Is there a way with JS to get the value of an xform element, so i can dynamicly change where the xml is being put to?

<xform:input id="test" ref="test"/>

<script type="text/javascript"> alert(document.getElmentById('test').value); </script>
and to do the following:

<xform:input onchange="alert('I have been Changed');" id="test" ref="test"/>

Robert