Questions tagged as 'jquery'

2
answers

Event add div javascript

I have a code where there is a form and the user can choose the number of lines by clicking on the buttons that are in front of the input, there is a '+' button to add a new input and '-' to remove the current input. Follow the code: <d...
asked by 01.11.2017 / 13:29
3
answers

Add hours with jQuery in real time

Hello, I have 3 input that receives hours and minutes of a timepicker : <input type="text" id="seg1" onBlur="calcular"> <input type="text" id="seg2" onBlur="calcular"> <input type="text" id="seg"> The first on...
asked by 29.10.2017 / 20:38
2
answers

Popular list-group bootstrap with ajax

Hello, everyone. I'm trying to popular a list-group bootstrap with ajax but I'm not getting it. I have already researched several places about it and could not resolve it. The php code is ok and the json that returns from php is also ok....
asked by 29.10.2017 / 22:56
2
answers

How to count the elements of a li in jquery

You can count the elements that are inside the li, but that is by step, for example first take the li1 and count the elements that in the case has to return 3 and then move on to another li. <ul> <li id='li1'> <a>elem...
asked by 16.07.2017 / 13:35
2
answers

Failure / Doubt change jquery event

Hello, I'm having a little problem with a checkbox. When the checkbox is true, two fields should be visible (by default these fields are invisible), otherwise the fields will be invisible. The checkbox works normally, but if I close the modal...
asked by 05.07.2017 / 02:42
3
answers

How to enable click on every cell in a table by opening a file on a new page

I'm trying to adapt a code that should do the following by clicking on a cell in a table to trigger the link by opening the file in a new browser window, what I have so far is in the tr table a data-url that calls a function. The c...
asked by 21.06.2017 / 22:20
4
answers

Change placeholder checking radio with jquery

Hello, I'm trying to change the placeholder of an input by checking between 2 input radio values. Below is the js I tried to mount and the html. $(document).ready(function () { $('#tipousuario').prop('checked',function () {...
asked by 09.04.2018 / 22:34
2
answers

problem with form with tabs

I took a code on the internet that configures tabs, everything works fine, except that when I change the tab and return to previous, the data entered in the form has been erased and the masks of the fields are also lost. This is the config code:...
asked by 04.04.2018 / 15:13
2
answers

When clicking on a radio button, disable textarea

How can I disable the textarea when I click on a radio button that is listed according to the information coming from a database. See below: IwouldlikethatwhenyouclickNo,thejustificationtextareareferenced,wouldbedisabled.Theinitialcodelooksl...
asked by 03.04.2018 / 20:53
1
answer

How to get the elements of a json?

I have a return of a request in the following format: In there are the types of cards json has returned. I want to get each type without manually typing their names. Currently I can get it by doing this: response.paymentMethods...
asked by 03.04.2018 / 22:33