2
So you guys I’m studying oop
in javascript
to crawling still, for this I’m trying to add on my site elements dynamically through js
I am wanting to capture the value of my text field and when I click the add button the element is created follows the code created in jsfiddle
thanks guy more n have as I capture the input value directly from the builder?
– Fernando Alcantara
Yes, but if you want a value always updated with whatever is in the input, you will have to get it every time you click the button.
– relaxeaza
@Fernandoalcantara what you can do is pass the element in the constructor, it would look like this: https://jsfiddle.net/ensdt17m/2/
– JuniorNunes
vlw rafael helped me understand a little more the concept of object orientation, n knew that the builder could return a methods
– Fernando Alcantara