[NOT SOLVED] How to submit dynamically created form with slider on slider's change event
Hello Every one,
I 'm using $.getJSON to populate my page's content.
This page contains a div called "listDiv" that is empty before the $.getJSON function is called.
Here's the content added to the div for each item return in my function which means that I have
as many forms in my page as the number of items.
My problem is that the form seems to be submitted by the onchange event when the page is created and not only when the slider is changed.
- '<form action="Scripts/update_element.php" method="post">
- <div data-role="fieldcontain">
- <input type="range" name="target" id="Slider-'+ this.post.element_id +'" value="'+ this.post.actval/2.5 +'" min="0" max="100" onchange="this.form.submit()"/>
How could I fix this?
Thanks a lot.