Questions tagged as 'jquery'

2
answers

criticize error when CEP is invalid (via CEP)

Hello I'm using the code below to get an address through the informed CEP. It works, however when typing an invalid zip code or 0000000, I get the {"erro":true} return. How can I turn this return into an alert with the code below:...
asked by 24.06.2017 / 02:27
3
answers

Loop is inside a function

I have a nav with 5 buttons, and a footer with the same amount, when clicking the footer buttons they serve as anchor for the page, but I need to compare with the nav items to be added to the class "Activate them ". Only returning me   ...
asked by 13.06.2017 / 19:24
2
answers

Modal ajax tracking mails

Is it possible to make a script that pulls the trace of some item on the post page? For example, within my site: link . There you have the link in the case for tracking PO117284423BR I would like to create a modal that when the link "PO117...
asked by 08.06.2017 / 16:20
1
answer

Jquery window.open in "success" in ajax is being blocked

I would like when saving an input and updating the div with the new information, in the return message "success" of ajax, also make the impression of the div. Example success : function(response){ $("#containerResultado").h...
asked by 06.06.2017 / 16:15
1
answer

How to prefix value in input

I used Bootstrap to insert a typed http: // spam at the beginning of the input. But I would like to know how to leave the input with this value by default, and then the user only fills the site you want. <label for="name">SITE <...
asked by 06.06.2017 / 23:01
2
answers

Make div appear and others disappear with a single click

I want the AC to show the content that is inside acre , and when I click AM , show or that is within amapa . This happens, but it throws div underneath the other. I want when I click AM the contents of the div AC sum ... and also ot...
asked by 16.08.2017 / 14:53
1
answer

Get the last id generated in the insert with jquery and redirect to another page

Hello, I'm having trouble getting the generated php id with jquery, so I can send this id to another page, follow the code: queryInsert.php $assunto = $_POST['assunto']; $msg = $_POST['msg']; $query = $db_con->prepare("INSERT IN...
asked by 14.02.2017 / 12:56
2
answers

How to join several variables in one in php and pass to JQuery in a link

I consulted on the subject and I even managed to find some forms but nothing that could solve my case, I will try to be direct to facilitate. I have a table where some visits of some companies, I have the visits of the types RTV and ATV and I am...
asked by 27.09.2017 / 15:16
2
answers

Fix double-click buttons with JQuery

I'm performing the maintenance on a site with several forms with buttons of type SUBMIT and also normal buttons that call an onclick event that in FORMS is used to perform data validation and in other situations is used to do some action that mo...
asked by 20.07.2017 / 16:49
1
answer

How to get value from input checkbox array with jquery

I'm not able to check if at least one checkbox was checked before submitting to form. I saw that you have some questions similar to mine, but none of the solutions worked for me I used the following code and it is not working: $("#funcoe...
asked by 05.08.2017 / 16:06