Posts by José Junior • 344 points
9 posts
-
1
votes1
answer50
viewsA: Different audio on each slide of the bootstrap carousel
The Bootstrap carousel class exposes two events to connect to the carousel functionality. Both events have the following additional properties: Direction: The direction in which the carousel is…
-
4
votes2
answers113
viewsA: Is there only display inline and block by default in the elements or others?
In fact, basically the standard HTML5 elements come by default with the types: block (H1, H2, H3..., p, div, header, Section, article, etc...) inline (span, Strong, em, image, etc) inline-block…
-
1
votes1
answer211
viewsA: How to click non-clickable HTML tags? Via console
The big thing is that you can add Event Listener to a 'click' on any html element. In your case, a div, just add the event’s Function Handler: const divElement = document.querySelector('#idDaDiv');…
-
1
votes1
answer5340
viewsA: Change input border color
Use the onKeyup event in the input and if the validation does not satisfy, add a 'has-error' class in it. If the validation meets, remove the above class. Below I implemented to be an example for…
-
1
votes1
answer93
viewsA: How to return data from a json file in an increasing way, different from the root of the objects?
If what you want is to sort an array (in your case json) in reverse order, just use the method re-verse of the object Array. const arr = [ {name: 'jose', idade: 32}, {name: 'ana', idade: 36}, {name:…
-
4
votes2
answers175
viewsA: Validate all inputs in SUBMIT
Following the same validation pattern you are using now, I say to do the following: First you must do your job validate() return true whenever the field is OK, and continue returning false when…
-
0
votes2
answers52
viewsA: How to put two pictures on this grid on each line for a 1366*768 resolution?
Buddy, there was a min-width limit on the minimum size of the figures, so you couldn’t get it down. Then I removed, and put their width as 23% and it worked. Forehead: .grid figure { position:…
-
0
votes3
answers3786
viewsA: Click on a button on a web page automatically
If you want a more Enerica function, to triggar various event types: function trigger (element, eventName) { var event, eventClass; switch (eventName) { case 'click': // Dispatching of 'click'…
javascriptanswered José Junior 344 -
1
votes2
answers611
viewsA: CSS - When you click on a checkbox... paint a TD
I created a blog text explaining in detail how I arrived at the solution below. Dude, you won’t be able to color the TD background like this. You can’t catch the element Parent in a css selector.…