Posts by pharoeste • 86 points
5 posts
-
0
votes2
answers45
viewsA: Enable the button when fields are filled in
This is happening because you are submitting your form on your button (which has no type Submit) through the event onclick. How to remedy this: Change your form submission from onclick button for a…
-
0
votes1
answer33
viewsA: Type in an input and generate an acronym in the second input with 3 characters
First I created two inputs: <input type="text" class="full-text" placeholder="Texto completo"> <input type="text" class="short-text" placeholder="Texto abreviado"> And now the Javascript…
-
2
votes2
answers84
viewsA: Nestle 2 maps and write data inside each of them in the React
You need to put the <td>s within a Fragment. You can do this by directly using the tag <Fragment> or simply <>. Follow the new code: <tr>{generated.student.map(s => (…
-
1
votes1
answer88
viewsA: Svg contained in DIV does not follow "max-height: 100%"
The height of . container-svg needs to be 100%, I put display:block on img just to make sure. Check fiddle: https://jsfiddle.net/3bnv9a2y/2/…
-
1
votes1
answer86
viewsA: How to center a dropdown with Javascript?
You can set a fixed width on ul.user-actions-dropdown and then position via CSS with position, left and margin-left. Something like this: http://codepen.io/anon/pen/pvVxNd There is also another way,…