I have a normal textarea
<textarea placeholder=" Digite aqui" class="form-control"></textarea>
I wanted the user to press enter when he did not break the line, but already sent the content.
Could you do this with a input...
I want to get the class name of an SVG element. I have the following example, but I do not get your name:
class_obj = document.getElementbyId("id").className;
console.log(class_obj);
Jsfiddle example: link
I'm reading a book called "Secrets of the JavaScript Ninja" and in it, I came across a method overload function. So far so good, I understood what it does, I understand that it makes depending on the amount of parameters passed to the function a...
I know that when I write code directly in HTML pages JavaScript is shown but what if I just call the file, for example,
<script src="script.js"></script>
Will the code be shown?
I'm studying Javascript for a YouTube videotape I did the same video, but when I click on Calculate the result appears and already disappears in less than 1 second, when in fact it should stay in the field text.
Below is the html and js.
No...
In this code, I need to pass the variable Var url_atual into
As I'm not aware of javascript I would like a little help on how I can do this
function loginMeuSite() {
var url_atual = window.location.href;
var divLoginSite = document.getEle...
Suppose the following JSON:
{"id": 1, "preco": 100, "detalhe": "nenhum"}
If I build an array with 100 of these objects and want to remove the "detail" key from all, for example, is it possible (without being in the hand)?
What does _: e _ mean? in the definition of functions as in the example below.
constructor(){
router.events.subscribe((_:NavigationEnd) => this.currentUrl = _.url);
}
I have many doubts about it.
I have the following HTML:
<select id="faturamento-mes-referencia">
<option value="1">Janeiro</option>
<option value="2">Fevereiro</option>
<option value="3">Março</option>
<option v...