clear input in form

edited November 2018 in Technical questions

hello,

I have a form like this and I don't find in API if it is possible to add a functionnality to clear / restart all input in a form cliking on "clear" button.

webix.ui({
                container:"areaA",

                view:"form", scroll:false,

                width:300,

                borderless:true,


                elements:[

                    { view:"fieldset", label:"Field Set 1", body:{

                        rows:[

                            { view:"text", label:"Email"},

                            { view:"text", label:"Password"}

                        ]
                    }},

                    { margin:5, cols:[

                        { view:"button", label:"Login" , type:"form" },

                        { view:"button", label:"Clear" }

                    ]}
                ]
            });

thank u in advance for your help

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!