Posts by Victor Jordan • 500 points
15 posts
-
2
votes2
answers190
viewsA: Pass property to the Angular System
To do this, you will need to use @Input on your child component to access the "name" variable, which is being passed to your parent. For example, let’s consider that we have a component users:…
-
1
votes2
answers179
viewsA: JS - Multiply and Show in text
You can "watch" your input and whenever there is any change in it, it would trigger the function with the desired logic! $( document ).ready(function() { var input1 = $("#valor_unitario"); var…
javascriptanswered Victor Jordan 500 -
3
votes2
answers3438
viewsA: HTML / CSS - input text Mask date, time
Alternatively, you can also use the new types of HTML5 inputs, which are of the type date and time. Your syntax would be: <input id="date" type="date"> <input id="time" type="time">…
-
2
votes3
answers3449
viewsA: How to limit the size of a td so that regardless of the text it has, heigth does not increase
You can do a text break from your td with the CSS properties td { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } In this way, the text within your td will be…
cssanswered Victor Jordan 500 -
0
votes2
answers441
viewsA: How to create an Operation Confirmation Alert?
You can create a modal and in that modal you would call the function to make the exclusion itself. A quick draft, the code below demonstrates the idea of how it would be function exclude(){…
jqueryanswered Victor Jordan 500 -
1
votes4
answers2967
viewsA: How do I put the background on the full screen, CSS?
The estate background has a number of options to be defined, such as background-position, background-repeat and one that can help you, if you don’t want the image to keep repeating in your element…
-
3
votes2
answers1045
viewsA: Change input color according to value
Since you are using Jquery, you can use change, it will check every time there is a change in the input and it will be able to apply some logic on top of that change. In this Codepen, I did only in…
-
1
votes2
answers42
viewsA: Input value of a form
You can use localStorage as they said! For example I did this Codepen to help you! Here are two very good articles to understand how localStorage works: Article 1 Article 2…
-
1
votes2
answers4800
viewsA: Add input with Javascript
To create new lines in your HTML, you can use insertRow and insertCell In the case of your code, it would be: const adicionar = document.getElementById("adicionar");…
-
4
votes4
answers1248
viewsA: Help with exercise
You are using the function itself to do the calculation! To get the right return, you must pass in the formulas the parameter that the function receives, which in this case is bill. Correcting your…
javascriptanswered Victor Jordan 500 -
1
votes3
answers41
viewsA: Property and Object Javascript
You are on the right track! When you select this way: document.selectForm.variosDia you are selecting only the HTML element, if you want to access its value, you must put…
-
2
votes5
answers939
viewsA: Centralize H3 in the Section
As answered above, you can use the property of flexbox Analyzing your site, I think the following code would result in the desired! .StarsSkyContent { height: 80vh; display: flex; flex-flow: row…
cssanswered Victor Jordan 500 -
2
votes1
answer966
viewsA: Align Ivs vertically to center (Middle)
You can use the property align-self of flexbox! For this, you would need to set that div father is display: flex to be able to distribute the elements homogeneously and in the div daughter to be…
-
5
votes2
answers9890
viewsA: How to "break" div in two columns?
In the div parent, you would need to define two properties that define how elements should act when they need to do this line break. The first would be flex-direction: row | row-reverse | column |…
-
2
votes2
answers1289
viewsA: What kind of measure used when building a site for width, height etc...?
It all depends on what your need is! The most common measurements are pixel, percentage, MS. We use percentage when we want to develop an interface that will adapt in other resolutions, making the…