Hello,
Is it possible to add a textbox dinamically, by clicking a button?
I have the following code, and I need to add a textbox, just like the one I already have when click the "Add Button"
01.
<!DOCTYPE html>
02.
<
html
>
03.
<
head
>
04.
<
meta
charset
=
"utf-8"
/>
05.
<
title
>Kendo UI Snippet</
title
>
06.
07.
<
link
rel
=
"stylesheet"
href
=
"https://kendo.cdn.telerik.com/2020.3.1021/styles/kendo.default-v2.min.css"
/>
08.
09.
<
script
src
=
"https://code.jquery.com/jquery-1.12.4.min.js"
></
script
>
10.
<
script
src
=
"https://kendo.cdn.telerik.com/2020.3.1021/js/angular.min.js"
></
script
>
11.
<
script
src
=
"https://kendo.cdn.telerik.com/2020.3.1021/js/kendo.all.min.js"
></
script
>
12.
</
head
>
13.
<
body
>
14.
15.
<
div
>
16.
<
input
id
=
"textbox"
style
=
"width: 100%;"
/>
17.
<
input
type
=
"button"
id
=
"add"
value
=
"Add TextBox"
class
=
"k-button"
/>
18.
</
div
>
19.
<
script
>
20.
$(document).ready(function () {
21.
$("#textbox").kendoTextBox({
22.
placeholder: "email@email.com.br",
23.
label: {
24.
content: "Email",
25.
floating: true
26.
}
27.
});
28.
})
29.
</
script
>
30.
</
body
>
31.
</
html
>