Posts by Thiago Morais • 34 points
4 posts
-
1
votes2
answers47
viewsA: Treat return parseint
Change your Strong element from class to id, it becomes easier to work like this, then you take the innerHTML of that element and execute its function. EX. <body> <p>Valor do item:…
javascriptanswered Thiago Morais 34 -
1
votes1
answer167
viewsA: How to create a button that when clicked creates a new element with Javascript?
I made some important changes to your code. First thing was to remove the div box from the screen, it should appear only when the user clicks the button. Note that in the function creatureWill…
javascriptanswered Thiago Morais 34 -
0
votes1
answer42
viewsA: Select an element in the DOM that will be loaded via JS
You can create a function that adds these events and call it after performing the function that creates the elements on the screen.
javascriptanswered Thiago Morais 34 -
-1
votes2
answers31
viewsA: Error trying to access form fields
Another simpler approach would be to get the elements straight by the field ids you want Ex. var email = Document.getElementByid('inputEmail4'). value