Hi,
On Fri, Mar 12, 2021, 15:13 Per Newgro wrote:
> Hi,
>
> i would like to add some input fields to an ul/li using JS.
>
>
>
> function add_fields() {
> var d = document.getElementById("items");
> var i = d.childElementCount;
> d.innerHTML += "
";
> }
>
>
>
> value="Add More" />
>
>
>
>
>
>
>
>
>
> Currently in Form.onSubmit values are empty.
>
> Is this possible? Is there an example for this?
>
Yes, I don't see why not.
Check whether the values are submitted in the browser's DevTools>Network
tab.
At the server side you don't have the corresponding Wicket Form components
so you need to use Request.getParameterNames() and
getParameterValue(String)
> Thanks for your support
> Per
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
Hi,
i would like to add some input fields to an ul/li using JS.
function add_fields() {
var d = document.getElementById("items");
var i = d.childElementCount;
d.innerHTML += "
";
}
Currently in Form.onSubmit values are empty.
Is this possible? Is there an example for this?
Thanks for your support
Per
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org