Questions tagged as 'jquery'

1
answer

date comparison for new fields dynamically inserted with jquery

This script correctly compares the dates of the initial inputs. If you add new pairs of inputs, the function always compares the first pair of inputs. How to make this code compare dates of new fields entered by clicking "Add Fields" fu...
asked by 25.08.2017 / 01:38
2
answers

Subtraction in jquery

I have this function in javascript, and wanted to pass it to jquery. The user clicks a button in html and calls the function for a discount. ' <script> function verifica(){ var preco = 100; var desconto = 0.30; var total; i...
asked by 26.08.2017 / 23:45
1
answer

Ajax Async: true, I need an example

Hello, I just want an example for study purposes. I want the page to update automatically, to make future chat, the page update asynchronously and also to refresh real-time page, where other people on the computer can see the data at the same ti...
asked by 25.08.2017 / 23:46
1
answer

Using the Select plugin 2 - How to disable select click

My page: <!DOCTYPE html> <html> <head> <title></title> <!-- 3 coisas para o plugin funcionar --> <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstr...
asked by 05.12.2017 / 19:09
2
answers

Open / Execute input file - jQuery

How can I open / execute an input file using jQuery ?! I have a php code that has the input file its css display:none; (Invisible), I need that when I click on an element, for example an image, the input file is executed as if I had click...
asked by 02.12.2017 / 20:15
2
answers

Load code according to device

The following is similar to what I have on the home page of the site: <div class="text-center"> <div id="minhaClass"> <a href="<?php echo get_site_url(); ?>/texto-1/">texto 1</a> <a href="<...
asked by 26.09.2017 / 23:29
1
answer

Changing logic - jQuery

I have several buttons from which to add and remove products from an external file, but this is just a detail. Every time the buy button is clicked, the product is added, the button is "changed" to remove, and all other buttons are disabled for...
asked by 04.09.2017 / 19:11
1
answer

Order validation via jQuery, Json

I want to make a function that the customer type his request it is checked if it exists in the bank or if it is an invalid request. And I want to return this via Ajax, but I never messed with Ajax, would anyone know how to do it? Function...
asked by 21.08.2017 / 22:59
2
answers

Validate a link in the input

Well folks, I wanted to make a form where in an input it is mandatory to put a Steam link. How do I do? Thank you.     
asked by 21.08.2017 / 21:06
4
answers

Automate button click [closed]

I need to automate the action of a button click by some script (Javascript), could you help me? <!doctype html> <html lang="en" class="no-js"> <head> <meta charset="UTF-8"> <meta name="viewport" content="widt...
asked by 16.08.2017 / 14:26