Questions tagged as 'javascript'

1
answer

Validate select with jQuery Validator

I have a select like this: <form action="" id="form"> <select name="unidadeNegocio[]" id="unidadeNegocio" multiple="multiple" > <option> A </option> <option> B </option> <optio...
asked by 25.10.2017 / 15:05
2
answers

Download anchor validation

Next,IneedtovalidatethisformsothatonlyafterthepersonregisterscanIdownloadthefile.WiththetagIcanalreadyhavethisvalidationbutImanagedtoputittodownloadonlywiththetag"ancora". <section id="e-book"> <header> <h3>Baixe...
asked by 06.10.2017 / 20:20
1
answer

Hide component outside the router-viewer

I'm using Vue Rotuer to control the routes of my project, so I've seen the need to use Navigation Guards . <script> export default{ beforeRouteEnter(to, from, next){ if(to.meta.adminOnly === false){...
asked by 04.10.2017 / 22:17
1
answer

Cookies with cURL help

I need to access a certain URL and load the file 'cookies.txt' the problem is the following I access the URL normally plus the Cookies.txt does not load ... I think the problem is here in this part $cookiepattern = "#Set-Cookie:\s+(?<coo...
asked by 05.10.2017 / 04:53
2
answers

Change image by clicking on it (JS, jQUERY)

I want to click on an image, and when I click on it, it will pull an api and I want the image to change to another, but I can not change the image. Note: the API is working, I just need to know how to change the photo when I click on it.    ...
asked by 13.10.2017 / 18:58
1
answer

In which reality is Kony Framework the best choice?

Today the market is increasingly looking for frameworks for a hybrid development of mobile applications. A framework that I had heard about was Kony, since he was chosen by Itau (Recently Changed). I would like to understand a little more abo...
asked by 11.10.2017 / 16:25
1
answer

Compare a string array with another string array and create a new array

I need a method / algorithm found in array1 strings of array2 and create a new array ( array3 ) with all stings separated from array2 . For example array1 = ['azxsdfghjkazxfgtfgt']; The array2 would...
asked by 18.10.2017 / 17:19
3
answers

How to remove a TR element from a list created with append?

[SOLVED STAFF] var precoFinal = 0; // função botão para adicionar um produto a um pedido $('#botao').on('click', function(event){ event.preventDefault(); var codigo = $('#inputCodigo')...
asked by 20.12.2017 / 14:46
2
answers

Pause count - setInterval

I'm creating a function to start a count and when it reaches the final value it stops. But clearInterval is not working: '( Has anyone ever had to do something similar? function numerosHome(){ var inicial = 0; var lo...
asked by 22.12.2017 / 13:13
6
answers

Current date Angular 2

I need to get the current system date. I use Angular 2. I tried the following validation, but without success. var now = new Date; if(dataInicial > now.getFullYear() + now.getMonth() + now.getDate()){ alert("Data inicial maior que...
asked by 01.11.2017 / 15:00