Questions tagged as 'jquery'

2
answers

How to limit an input according to the variable?

I have 2 fields as shown below: <div class="col-md-4"> <label for="descricao">Valor título </label> <div class="input-group"> <span...
asked by 22.11.2018 / 19:41
1
answer

Calculate values in jQuery

I have three fields: <input type="number" id="product_quantity" name="product_quantity" placeholder="Quantidade"> <input type="text" id="buying_price" name="buying_price" placeholder="Valor Total" value="" class="form-control autonum...
asked by 02.12.2018 / 01:40
1
answer

Focus on the first validation element - jQuery

Hello, With the function below, I validate required fields. In this case, I do not use this function to submit the form, but rather to add items to the object. However, I want to focus on the first required element. Something like:...
asked by 04.12.2018 / 13:26
1
answer

Scale image and hidden caption with jquery and css3

I have a problem with image zoom and hide the caption of my own, in the hover of the image I increase the scale of it in the css, already in the jquery I hide the legend, but when climbing, the images next to it I already tried to change the z-i...
asked by 17.12.2018 / 18:30
2
answers

Request Method Changing from GET to OPTIONS alone

I have the following code: $(function() { $('#method').change(function() { var method = $(this).val(); if (method == 'GET' || method == 'DELETE') $('#json-group').hide(); else $('#json-group'...
asked by 13.06.2014 / 22:04
1
answer

Subtract date to get countdown

I currently have the following code: var now = new Date(); var countTo = 50 * 24 * 60 * 60 * 1000 + now.valueOf(); $('.timer').countdown(countTo, function(event) { var $this = $(this); switch(event.type) { case "seconds":...
asked by 17.06.2014 / 16:18
1
answer

Overlay problem @media

I'm having trouble understanding one thing. I am putting together a questionnaire and when the person does not select any alternatives an box appears with the overlay saying that it is for her to select. CSS Code: .backdrop{ positio...
asked by 13.06.2014 / 20:10
2
answers

Remove JS file via JS

I have a site that has the fixed side menu and the other part loads the pages. For each page of the site I made a js file. For example: Home.jsp I have the file home.js, Contacts.jsp I have the contacts.js. I'm loading the pages with the jque...
asked by 16.06.2014 / 14:45
1
answer

A loading appears while reading the loading of JQuery content

I have the following code: <div id="conteudo"></div> <script> var qnt_result_pg = 20; var busca = ""; var pagina = 1; $(document).ready(function () { listar_usuario(pagina, qnt...
asked by 24.12.2018 / 13:11
1
answer

How to avoid infinite cycle in function / call that reduces letter size?

I've created this small jQuery extension that aims to reduce the size of text by setting% css% of CSS based on% of its container%. The operation is simple, find the current font size and remove a pixel, then apply a new CSS definition for the...
asked by 23.12.2013 / 16:25