i would like to add some input fields to an ul/li using JS.

  <script type="text/javascript">
    function add_fields() {
      var d = document.getElementById("items");
      var i = d.childElementCount;
      d.innerHTML += "<li><input name=\"item:" + i + ":value\" /></li>";

  <form id="form" wicket:id="form">
    <input type="button" id="more_fields" onclick="add_fields();" value="Add 
More" />
    <ul id="items">
      <li wicket:id="item">
        <input wicket:id="value" />
    <input type="submit" value="Go" />

Currently in Form.onSubmit values are empty.

Is this possible? Is there an example for this?

Thanks for your support

To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to