append element to another dform

88 views
Skip to first unread message

Luca Bottoni

unread,
Jan 23, 2014, 5:03:27 AM1/23/14
to jquery...@googlegroups.com
Hi,
i create this dform
<form id="container"></form>
<script>
    jQuery("#container").dform({
        "type":"ul",
        "name":"ulxx",
        "id":"ulxx",
        "html":[
            {
                "type":"li",
                "html":"AAAA"
            }
        ]
    });
//now i want append li tag

</script>

tried...but don't work (create another ul with same id and name !!!!)
-----------------------------------
    jQuery("#container").dform({
        "type":"ul",
        "name":"ulxx",
        "id":"ulxx",
        "html":[
            {
            "type":"li",
            "html":"BBBBBBBBBBB"
            }
        ]
    });

tried...but don't work (create another ul with same id and name !!!!)
-----------------------------------
    jQuery("#container").dform("append",{
        "type":"ul",
        "name":"ulxx",
        "id":"ulxx",
        "html":[
            {
            "type":"li",
            "html":"BBBBBBBBBB"
            }
        ]
    });

Luca Bottoni

unread,
Jan 23, 2014, 7:37:04 AM1/23/14
to jquery...@googlegroups.com
jQuery("#container > ul").dform({

    "type":"ul",
    "name":"ulxx",
    "id":"ulxx",
    "html":[
        {
        "type":"li",
        "html":"BBBBBBBBBBB"
        }
    ]
});


resolved :)
Reply all
Reply to author
Forward
0 new messages