Questions tagged as 'jquery'

3
answers

Decrease the JAVASCRIPT forms

I have a code when the person clicks add the code generates other forms .. but how do I in each form have the option to delete? Note: I do not want to delete the last one added but a certain one. var counter = 1; jQuery('a.add-author').cl...
asked by 29.01.2018 / 13:42
1
answer

Hide element only if visible or vice versa

I'm using the change event in a select field, in which the corresponding option is the id of a div, what I'd like to do is display the selected div and hide the other dives only if it is visible or hidden, in a dynamic way if a div that was hi...
asked by 29.01.2018 / 04:23
1
answer

setTimeout with each loop does not work [duplicate]

count = 1; $("a.btns").each(function() { if ($(this).parent("span").attr("id") == "btn_default") { return; } count++; these = $(this); setTimeout(function() { $(these).click(); }, 10000 * count); }); The problem should...
asked by 03.02.2018 / 22:44
1
answer

How to upload an image using jquery / ajax?

I am sending the following data to save a form: function editaFeira(id, descricao){ if (confirm("Confirma a alteração de " + descricao + "?")) { $.ajax({ type: "POST", url: "functions/editarFeira.php", data: {id: id, d...
asked by 20.01.2018 / 15:12
1
answer

I have a problem loading the page it goes directly to the footer

When you open the page on localhost it goes directly to the footer: Anditdoesnotstartintheheader: Theproblemisintheform,butIhavenoideaofpq..]code:<formid="contact" action="mail_send.php" method="post"> <h3>Precisa de Ajuda?</...
asked by 06.01.2018 / 02:43
1
answer

Create a select of cities, when to choose the city goes to the specific site of the chosen city

This is my select, I have tried to use it for a long time, I do not know how it works, I see that many great websites use it and the user selects the city, it shows the respective content, but the URL does not change. <form action="cid.php"...
asked by 07.01.2018 / 23:12
1
answer

php variable within line javascript (Sweet Alert) PHP

I'm creating a message using the Sweet Alert feature, and where I need to display the person name inside an Alert from a PHP variable >. So, I would like to know how I can do it correctly. Obs :. The connection to the database is working...
asked by 27.12.2017 / 17:36
1
answer

disabling Jquery keyup button

I am making a password validator. I made a method to validate if the password requirements are not met the save button is disabled, if they are answered the button enables, but it did not work .. Let's see. <form novalidate="novalidate"...
asked by 27.12.2017 / 16:39
1
answer

jquery is not bringing the value of the form

I have this script that makes a request for a php page, the problem is that it is not bringing the input value to the php file. How could I solve this? php $mail->MsgHTML('corpo do email'. $_POST['email'].''); jquery $(document).on...
asked by 02.01.2018 / 20:39
1
answer

Change input number and sum form field values

I have a form with several inputs number, each input has an attribute called product_val that contains a value. I need to change the contents of an input (change), a particular function captures all the inputs of the form, get the valu...
asked by 02.01.2018 / 20:45