Questions tagged as 'javascript'

1
answer

Change default validation message

I have a login form, where if the user does not fill in the fields, he will be warned. The default message is Fill in this field. I changed to Fill in the email or Fill in the password , depending on input > that is missing. I was able...
asked by 27.08.2018 / 23:48
2
answers

Method opens all modals of v-for elements

I have the following code snippet: <template v-for="(item, index) in listaProjetosModelos"> <tr :key="index"> <td class="text-center"> {{item.nome_projeto}} </td> <td...
asked by 23.11.2018 / 17:52
1
answer

Catch all the div inside a tbody without jquery

I have the following structure in my HTML: <!-- O número de tbody's sera gerado dinamicamente, de acordo com o número de estados --> <tbody name="tbodyEstados"> <tr style="background:#F5F5F5;"> <td>...
asked by 27.11.2018 / 14:11
1
answer

RegExp with only one letter

I wanted to make a RegExp that would look more or less like 0000-x , that would be available only the letter X and numbers from 0 to 9. I gave a search on the net, I was able to do with numbers only or to get all the letters . He...
asked by 14.10.2014 / 17:53
2
answers

Image Gallery Error

Edit: link I'm having a little problem, when I upload my files to the server the images look like this, however when this location works normally, The error is only corrected if I refresh the page, if you do not refresh the images, stay...
asked by 28.09.2018 / 20:31
2
answers

What is the purpose of defining the name of a function that is assigned to a variable? [duplicate]

I was taking a look at some posts here on the site and I came across this question here . Well, in the accepted answer was explained the statement of expressions , anonymous, named and self-invoked . Causing my doubt in the named function....
asked by 13.07.2018 / 16:27
1
answer

How to detect if the $ http request is a cache response or not?

In AngularJs, $http has a very useful option of caching the result of a request to a specific url . For example: $scope.getUsers = function () { return $http.get('/users', {cache: true}) } $scope.getUsers().then( res...
asked by 14.07.2018 / 17:00
1
answer

How to use querySelectorAll () to search for specific tag derived from an element that has an x class?

Would anyone help me use .querySelectorAll() to find all paragraph elements derived from elements that have a classe x?     
asked by 12.07.2018 / 02:02
1
answer

Input Text with jQuery

Why can not I type text in the input ".add-edit" that was created with jQuery ? $(function(){ function onTarefaDeleteClick(){ $(this).parent('.tarefa-item').hide('slow', function(){ $(this).remove();...
asked by 12.07.2018 / 16:52
2
answers

Error in the division by groups ramdomicamente

Good morning. I am making a code in javascript, to split an array of names into groups. It is just an example, but I will use it in a football system that I participate in. I want to do everything dynamically, but let's break it down: I have...
asked by 26.09.2018 / 14:24