Questions tagged as 'jquery'

1
answer

Set amount of results returned by function that filters JSON

I have the following code to filter a JSON , it works perfectly, the only problem I'm having is to choose the number of results displayed. (currently only displaying a single result). var elemento = document.getElementById("galeria"); va...
asked by 19.07.2016 / 19:48
2
answers

Transition in CSS sequentially

I'm developing a quiz where Divs transactions are done via CSS. The problem is that the transaction of adding the next Div is being executed in parallel to the withdrawal of the current one. I would like to just start the animation of " removeco...
asked by 19.07.2016 / 19:00
1
answer

How to activate a navigation item dynamically

I've always tired of changing navbar of all my pages, and I've decided to create a file for navbar and always give include on the pages to make adding / removing items easier! But, my question is whether to make a system...
asked by 20.10.2016 / 04:09
1
answer

load ajax combo when opening page

I have the following code to load the cities: $(function(){ $('#cod_estados').change(function(){ if( $(this).val() ) { $('#cod_cidades').hide(); $('.carregando').show(); $.get...
asked by 20.07.2016 / 01:19
1
answer

Blur / Focus with Jquey

I'm doing a project that has several inputs, but I can only type in just 2 of them, so I would like my jquery to do a validation so that the user can just enter these fields, something like this: $("#FL1").on('blur', function () { if(camp...
asked by 05.07.2016 / 14:50
1
answer

Filling input masked with zeros

I'm using the link plugin to create mascara in an input field, the mask I'm using is the next. $('.campo').mask('0.0.00.000'); I need that when entering the numbers in my field the value referring to the mask be filled with 0 in the same,...
asked by 05.07.2016 / 15:50
2
answers

Pop up with jquery before closing the browser [duplicate]

I would like to make a pop up that appears before the person closes the tab of the browser equal to that of the shoptime: link I do not have much knowledge in Javascript, let alone in jquery. Can anyone help me?     
asked by 29.06.2016 / 21:48
1
answer

Onclick does not work in Firefox and IE

This function does not work in firefox and IE: No javascript: function scrollTo() { var _offset = 90; $('html, body').animate({ scrollTop: $('#videoItem').offset().top - _offset }, 'slow'); return false; } No HTML: <div cl...
asked by 01.07.2016 / 20:06
2
answers

Disable line break when pressing enter with javascript

imagine twitter !! you have that text box and a character limit, as you type the character count goes down and when you pass the limit disable the post button, the tbm button is disabled if nothing is typed. That's what the code down does !! I w...
asked by 01.07.2016 / 20:11
1
answer

Use the id of two different pages in Jquery

I have 2 HTML pages and each one has buttons, on the second page there are several text boxes and I would like that when the user clicks on the first HTML page he will go to the second page and hide the button; Then when all fields in the text...
asked by 24.11.2016 / 21:26