Questions tagged as 'javascript'

2
answers

Remove specific input file type="file"

I made an input as follows: <input type="file" id="arquivos" name='arquivos[]' multiple onchange="funcao_listar()"> When you click the button and select the various files to upload, it lists the file with the delete button next to it...
asked by 15.10.2018 / 20:58
2
answers

hasFocus () check in tag a

Hi, good afternoon. I have the following HTML code: <section class="sectionQuemSomos"> <a class="iconQuemSomos" id="QuemSomos"> <img class="img-fluid" style="height: 80px" src="assets/img/icos/Icone_Quemsomos.png">...
asked by 02.08.2018 / 18:19
2
answers

Momentjs - How to add / subtract datetime?

Follow the code below: var value = '/Date(1533227866063)/'; var utc = moment().utcOffset() / 60; // -180 / 60 = -3 var datetime_utc = moment(value).format("DD/MM/YYYY HH:mm"); // 02/08/2018 13:37 var convertDatetime = ??? // 02/08/2018 10:37...
asked by 03.08.2018 / 15:03
2
answers

Lock button if input's of different names selected

I need help to make a small script that blocks the button, if it has input's with the nomes different selected, and that allows if they are equal, both cases with the same class, and also that shows the status which groups are sele...
asked by 05.08.2018 / 18:39
2
answers

Javascript - Change return value using setTimeOut

Good people, I needed to change the return value when I clicked the button, that is, first click would have to return false and passed x segundos would have to return true and proceed with the event. The code is...
asked by 07.08.2018 / 11:39
1
answer

without quotes enough to pass a javascript html string

I'm facing a difficulty, I have to create tags, which will have a function when clicking, the problem is that, I have to pass a string in the element in html ie when calling the function and pass as parameter, I need to use quotes, but ended the...
asked by 16.08.2018 / 14:36
1
answer

Function that generates Multiple Inputs sends only # 1. How to solve?

Function creates inputs for data inclusion By clicking add, the fields are generated correctly The problem is that you always send # 1: a) If you just open and click Submit; b) even typing texts. what it sends: field1 = 1 field2 = 1 f...
asked by 05.08.2018 / 01:42
2
answers

How to remove and add a certain TD

Within each tr there are several buttons (add and remove) and their respective td (s), how do I know that certain tr should I delete if I click on one of the add or rem buttons? Also wanted to add a new tr of c...
asked by 19.06.2015 / 16:44
1
answer

Calculating date and tag onblur

I'm creating a screen to add orders. When I choose the date of the sale, I would like it to automatically calculate the due date and change the maturity field value (which is always 180 days after the date of purchase). <table>...
asked by 05.06.2015 / 17:27
1
answer

child element taking focus from parent element

Is there any way to know when any child element is in focus? My problem revolves around the example below where I need a div not to blur when a child element is in focus (in this case any input element that serves for user interaction activates...
asked by 16.06.2015 / 14:01