Questions tagged as 'javascript'

2
answers

Insert JavaScript via JavaScript

I'm studying DOM and I'm having trouble inserting a new <li> and <a> into a given <ul> . I was able to insert a new <li> using the code below, but I could not succeed in inserting a new &l...
asked by 06.11.2018 / 03:11
2
answers

Validate if entered date is smaller than the current javaScript [duplicate]

Personal Beauty, I'm trying to validate if an informed date is less than the current date .. var dtVenc = '22/10/2018'; /* Aqui recebe a data String do Json*/ function retornaData(data){ if(!data){ return data; } split =...
asked by 22.10.2018 / 20:54
1
answer

Get image address, jquery

Hello, good morning! I would like to get the SRC value of the IMG tag, using js / jquery. In this case, it would be link <html> <head> <title>hello</title> <script src="https://ajax.googlea...
asked by 03.11.2018 / 17:16
1
answer

Pre loading images with javascript, which is correct way to accomplish this?

I'm having problems uploading images to the server. I would like to know the correct way to preload those images. // JavaScript Functions function sleep (time) { return new Promise((resolve) => setTimeout(resolve, time)); } function load...
asked by 06.05.2018 / 20:23
2
answers

How to get the value of some select item when clicking on it

In the font given below, the logic fails to capture the click on the select element returning only the first option , and so it appears to be an index problem - selectedIndex . Observe : function selecionar(l...
asked by 10.05.2018 / 17:47
2
answers

How to remove vowels from a JS String?

I want to create a function in JS that removes vowels from a word. I tried with replace, regular expression, but I could not.     
asked by 15.05.2018 / 00:35
2
answers

Remove content after added in javascript

I'm adding a reason, so ok, I delete the first reason, but the added ones I can not delete! var antes = 'Bem estar psicológico <img src="delete.png" style="width: 1cm" onclick="deleteMot(' + '"Bem estar psicológico"' + ');"> <br&g...
asked by 21.05.2018 / 19:07
2
answers

Problems with querySelectorAll

QuerySelectorAll works normally in Firefox, but in Chrome it does not. I would like to know if anyone can help me in such an issue, follow the code. <script> document.querySelectorAll('a').forEach(link => { let con...
asked by 16.05.2018 / 20:22
3
answers

Add columns Vue.js

I need to add the two columns when one of them is changed, for example: if evaluation is changed the highest grade is in final grade, the same for oriented studies. var vm = new Vue({ el: '#vue-instance', data: { tablenotas: [...
asked by 12.05.2018 / 23:55
1
answer

Effect bug on Chrome

My problem is this: I have a page that calls a function to mark points in an image and effects on it, as I use other browsers, like Mozilla for example, it works normally, both the marking of points and the application of the effects, but only i...
asked by 04.05.2018 / 02:06