Questions tagged as 'jquery'

1
answer

Remove one element at a time with Jquery

I'm using the Clone function of jquery to be able to replicate a div . However, removing these elements, regardless of the quantity that has been replicated, always removes the div by complete. I need it removed line by line. Form Code:...
asked by 19.11.2018 / 15:24
1
answer

ajax with jquery - data format

A doubt. In this example: This is just a test where the api-clients-edit.php page receives the data, saves it and returns the status. var dados = $("#editarClientes").serialize(); dados += "&id="+meuID; console.log(dados); $.ajax({...
asked by 24.12.2018 / 18:25
1
answer

How to run a hide in JavaScript from one part of the page to the other:

Sorry for the confusing question, I'll try to explain it better: I'm making a website, and I've used pages that fill the entire screen, and they center the content, one below the other. There is also a menu at the top, with a transparent back...
asked by 13.12.2018 / 12:50
1
answer

I need to fill 2 fields using select

I have select with the following values in option : <select id="frutas" name="frutas" > <option value="">Selecione...</option> <option value="Maçã - 10.00"> Maçã </option> <option va...
asked by 02.09.2016 / 02:00
1
answer

Delegating events to dynamically generated elements

I'll try to be more specific. I have a <ul> list that is populated via jQuery: var $imovel = $("#lista-resultados-pesquisa"); $.ajax({ type: 'GET', url: 'imovel.json', success: function(data) { $.each(data.imovel,func...
asked by 04.06.2016 / 16:29
2
answers

Add text to the input (virtual keyboard)

I wrote the following script: <input type="password" class="email password_action" placeholder="Account Password" id="user_password" name="user_password" required> <? for($i=0; $i<=9; $i++){ ?> <button id="keyboard_<?...
asked by 18.05.2016 / 01:49
2
answers

How to modify the color of a tr according to the data of a td?

I own some tr in the table that contains the tr-child class and would like to change their color when the value of the fourth column of that tr is> 0. Is this possible with jquery? I had already done something ... $('.tr-child td:nth-...
asked by 11.02.2016 / 12:33
2
answers

Load a combobox by selecting another combobox

When returning the values in the combobox, it is returning as undefined: include 'relacao-cidades.php'; And just below the combobox that I want to load the states according to the selected city: <select name="Estados" id="CmbCidade" c...
asked by 09.02.2016 / 19:11
1
answer

How to create validation to ask if the user really wants to leave the page? [duplicate]

I have a page where the user will edit fields that are in a form. This data comes from the database. The user can edit them, however, in the end he can write (that is, he will write / do update in the database) or he can close. I want to ma...
asked by 29.09.2016 / 13:54
1
answer

Dynamic forms on the same page in Jquery and PHP

I'm trying to make a comment portal, so I'll have a text input on every POST for people to comment, these POSTS will be on the same page (Facebook style), as well as the inputs, which will have to be dynamic. I made this function using Jquery...
asked by 27.10.2016 / 08:34