Questions tagged as 'jquery'

2
answers

How to know when an element is at the top of the page

I'm developing a one page website with several sections (about, contact, services for example) And a fixed menu, the idea is as the user scrolls the page the fixed menu would change the active links, ie when in the contact section, in the fix...
asked by 25.05.2017 / 13:51
1
answer

Problem with mouse over image

I'd like to know how I can move my menu into an image I've made. I wanted to put the menu on the left side for example. Here's my menu: link Here is my code: <!-- Icon --> <div id="user"> <img id="icon" align="l...
asked by 04.01.2017 / 10:26
3
answers

Delimit area animate Jquery

I would like to move the doll and it stays just inside the div, when it hits the line that delimits the square, it stops and can not go beyond. $(document).ready(function(){ $(document).keydown(function(x){ if(x.whi...
asked by 01.01.2017 / 20:10
2
answers

How to allow a regular expression of letters and numbers to accept the cedilla

I need the regular expression to accept the ç key. $('[name="txtEndereco"]').keyup(function () { this.value = this.value.replace(/[^a-zA-Z 0-9]+/g,''); });     
asked by 14.02.2017 / 22:12
4
answers

Calculate inputs with JavaScript

I need to make + index work because it is a system for generating pages with embedded products. In this case, each inserted product will have a total0 + total1 and so on. However, it has to be in real time the value! function Soma...
asked by 08.12.2017 / 16:23
1
answer

Using jsPDF to generate PDF

I used jQuery and jsPDF to generate PDF of the contents of a DIV p> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.3.5/js...
asked by 21.11.2017 / 16:38
1
answer

Alert being repeated through .each () ajax

I have the following jQuery: $("#apagar-marcados").click(function(){ var lista_marcados = document.getElementsByName('id_mensagem[]'); $.each(lista_marcados, function(i, item){ if ($(item).prop('checked')){ $.ajax({...
asked by 19.11.2017 / 15:03
3
answers

How to change the radio button background when it is selected

I have the following problem, I have on my form several issues that are handled using the radio button, as print attached. I'm using jquery to change the color of the button when it's selected, the problem is that when the person selects the typ...
asked by 08.01.2018 / 15:50
1
answer

Load external source

You can load an external font with jquery $('div').on('click', function(){ $('textarea').css({'font-family': 'fonte', "src": "url(https://fonts.gstatic.com/s/tangerine/v8/HGfsyCL5WASpHOFnouG-RFtXRa8TVwTICgirnJhmVJ...
asked by 21.07.2017 / 18:48
1
answer

How to optimize iframe load time?

I have a page with several YouTube iframes that are taking a long time to load. I would like to know if it is possible to decrease this loading time or if it is not possible, like putting an animation until all the videos are loaded.  ...
asked by 02.12.2016 / 19:49