Most voted "jquery" questions
jQuery is a Javascript library focused primarily on DOM handling, event management and Ajax, seeking to free developers from directly dealing with a number of browser compatibility issues.
Learn more…11,371 questions
Sort by count of
-
1
votes1
answer83
viewsSelect input with id != value
a selector like this: $('#minhaDiv input[id!="meuId1"]'); is well comun. I wonder if it is possible to do something like: $('#minhaDiv input[id!="meuId1" && id!="meuId8"]'); Thank you.…
-
1
votes2
answers256
viewsDisplay the class of different tags from one ID each click
I want to make a code that takes the class of an ID whenever it is clicked: html <ul> <li id="alert-class" class="class-1">1</li> <li id="alert-class"…
-
1
votes6
answers886
viewsRegular expression to grab the background-image url
I’m not very good yet of regular expression. How could I do to capture only the contents present within the snippet url() of background-image? Example: $elemento.css('background-image'); //…
-
1
votes1
answer943
viewsManipulate an iframe through another iframe
Hello, I have a question and I would like to ask for your help. Well, I’ll try to explain more or less the problem (the names I’ll quote are just for example). Imagine I have a file called…
-
1
votes2
answers4017
viewsLoad Javascript function when opening the page
I don’t know much about it, but I’ll try to explain. Currently when I pass the mouse over a div with class tooltips, the script below is executed: $('.tooltips').tooltip(); However, I would like…
-
1
votes2
answers761
viewsDynamic name input name
I want to create a form with a variable number of inputs, according to the amount of data coming from a BD and assign them to the "name" unique names. Then I need to submit this form and recover the…
-
1
votes2
answers1388
viewsHow to make a Link trigger a javascript function without redirection?
I was trying to get that by clicking on a Link HTML <a></a> a javascript function is executed, I had a priori the following idea to attach an attribute onclick on the tag <a> in…
-
1
votes1
answer372
viewsShow a div with jQuery
I’m trying to show two divs (container-imagem-upload, container-tipo-video), but it didn’t work. It’s showing the div and disappearing. CSS .container-tipo-video {margin-top: 50px; display: none;}…
-
1
votes1
answer75
viewsSum ignoring deleted number
In my system, I dynamically send columns with dates based on a parameter received, building a table where in X I have products and Y I have the amount that comes in each package, date list in th…
jqueryasked 9 years, 8 months ago Rafael Barbosa 2,855 -
1
votes2
answers3085
viewsEvent for when the user leaves the page
Would you like to make a template equal to that of the free ratchet site. How could you do this? It consists of when the mouse leaves the page appear a alert wondering if the user really wants to…
-
1
votes1
answer773
viewsjQuery UI autocomplete with AJAX call not displaying settings
Well, I’m trying to implement the jQuery UI in my code, but partially it does not work because it does not display the options below the component of input. It performs of being correct the request,…
-
1
votes1
answer1203
viewsProblem with coin mask on Primefaces
I’m using JSF, and it’s not working my coin mask, did I miss some of the code? here is the code below <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"…
-
1
votes1
answer2088
viewsInfinite Loop. How to stop the Loop in a given situation?
I did the implementation of the code below, it rotates the page every X Seconds, but it never stops, it sits in an infinite loop. I would like to stop the code from running when: if (track_click…
-
1
votes1
answer900
viewsUsing a variable created within an AJAX request in another function
I have a list of projects where, when the Thumb of a project is clicked, the script loads images related to the project. $('.project-grid').on('click', 'a', function (event) {…
-
1
votes2
answers2558
viewsHow to get the value of inputs by declaring this of an element [jQuery]?
jQuery(function($){ $('#upusuario').on('submit', function(){ formulario = $(this).serialize(); Question: How I would pick up input senha and confirmasenha of this form to compare them, of course…
-
1
votes1
answer587
viewsClear json array after Ajax from a PHP file
Does anyone know how to clear a json array via ajax from a php file? I have a setInterval that checks every 2 seconds and receives data from a php file( this data is brought as json array, I can see…
-
1
votes2
answers872
viewsReturn only integers
<title>Calculadora de Nível</title> <meta charset="utf-8"> <style type="text/css"> body { font-family: 'Segoe UI', Calibri, Helvetica, Tahoma, Verdana, Sans-Serif; color:…
-
1
votes2
answers685
viewsJquery how to set a value in a field with CPF Mask?
I have an input using an example CPF mask : $("#cpfDependente").mask('000.000.000-00'); and I’m trying to set a value in the input this way $("#cpfDependente").val(dependente.cpf); It correctly…
-
1
votes1
answer1382
viewsAdd a tag to another tag using Javascript
I have a jQuery that I use on a website that I’m doing that applies the zoom effect on an image. Only when I hover the mouse over the image and it zooms in, jQuery creates another IMG tag with the…
-
1
votes1
answer43
viewsRunning a function allocated to an object from a comparison in for
I am building a library to validate forms (I know there are numerous but my case is specific) and I wanted to be able to send to a function an object with the fields and in its sublevel its…
-
1
votes2
answers89
views -
1
votes0
answers260
viewsDynamically created content over dynamically created content not working
Hello, I have a "static" page (between quotes pq it is dynamically generated by PHP, but let’s say static in the eyes of Javascript) and I’m trying to create it dynamically, because it will become a…
-
1
votes2
answers147
viewsActivate the Hover in series
Staff I have the following structure: <h2> <a class="imgHover" title="titulo" href="#"> <span id="box" class="imgHover"> <img src="imagens/estrutura.jpg" width="400"…
jqueryasked 9 years, 8 months ago Joao Nivaldo 1,229 -
1
votes2
answers1716
viewsGet value from an iframe via Javascript
I have a code that is in an external file and I need to load it via Javascript, but I don’t know how to do this. I have tried several ways, and apparently the best would be with an iframe, but not…
-
1
votes1
answer536
viewsWhy does form serialize return empty textarea value?
Good night, I’m creating a CMS based on bootstrap php and ajax what happens to me and that I can send the data of form all by method POST minus the value of the textarea always returns empty I am…
-
1
votes0
answers46
viewsjquery combobox with cakephp 2x
With the code similar to what jquery ui provides, I am testing this combobox in my cakephp, the problem is that in no way it shows the arrow to enable the dropdown menu, already downloaded jquery ui…
-
1
votes1
answer321
viewsSelection of elements by classes with jQuery
How do I select an HTML element that has only the classes I ask for? For example: $('.a.b.c') -> deve retornar apenas a div1 e não todos os elementos que também possuam as classes a, b e c além…
-
1
votes1
answer221
viewsCenter Text block vertically according to the size of the next div
My partners, I’m losing my hair with this problem I’m facing. I have some bootsptrap pages, in which each container has a row (Row) and the same has two columns (each with the classes: col-Xs-12…
-
1
votes1
answer71
viewsHow to insert Jquery using Emberjs
I’m building a web app with Ember.js (simple) and I’m trying to use some animation functions with Jquey, there goes the code: require(['../js/bootstrap'], function () { require([ 'jquery',…
-
1
votes1
answer188
viewsClose modal in the REMODAL plugin
I’m using the Vodkabears Remodal plugin, https://github.com/VodkaBears/Remodal#readme I open a modal with it and inside the modal I have an iframe, I wanted to know how I close the modal from a…
-
1
votes2
answers479
viewsFancybox with Facebook share button
I would like to add a facebook share button to overlay Fancybox 2.1.5 on instagram photos. At the moment I have a button like that works but that’s not what I want, what I really wanted was a button…
-
1
votes1
answer77
viewsDownload file via ashx
I need to make a Javascript method that calls an ashx (Generic Handler) that returns an array of bytes (a file). This file can be XML, TXT or PDF. So far I solved the problem, but when the file does…
-
1
votes2
answers3248
viewsGet HTML from multiple Divs with the same ID
I would like to know how to get content from a WEB page where I have several Divs with the same Ids. One looks like the other, the div 1, is like a Titulo, already a Div 2 as if it were the…
-
1
votes1
answer417
viewsHow to include a checkbox column for all rows in Datatable?
I would like to place a column at the end, with a checkbox or toggle switch button for all rows coming from an ajax call. I managed to put by sDefaultContext and mRender, but the checkbox does not…
jqueryasked 8 years, 11 months ago Ysabelle Sousa 339 -
1
votes1
answer26624
viewsTake class name and jquery ID
Guys I have the following situation, I do a search on an object behind some classes, as we know the FIND() returns what is inside the selected class, using join with find o each, traversing the…
-
1
votes4
answers1023
viewsSend more than one parameter in GET request
I use the code below to send a meter in a request Ajax of the kind GET. $('#cidades').load('cidades.php?estado=' + $('#estados').val()); How do I also pass a parameter called recurso?…
-
1
votes1
answer4052
viewsDATA input mask: "00/00/0000" === '0 to 31' / '0 to 12' / '19 || 20' '0 to 9' '0 to 9' =
Hi, I need to make mine <input id="data"> has as parameters: taking into account the format of : 00/00/000; the first two from 0 to 31. (if you put value above, it resets to 31) the third: 0…
-
1
votes1
answer983
viewsGroup clicks into "more" and "less" buttons to make fewer requests in a row
On a site I have a button "more" and "less" to change the amount of an item in the cart, only the item is updated when you click. If the client clicks 10 times in a row, 10 requests are made, and…
-
1
votes3
answers125
viewsEnable/Disable input by id
I have two inputs, by automatically clicking they become readonly, I am doing so: <script> $(document).on('click', '#outros,#txtOutros', function() { $('#outros').attr('readonly', true);…
-
1
votes1
answer265
viewsGet input value with jquery mobile
I’m trying to get the value of one input and a textarea with jquery mobile and add the values within a div using append() It’s just not working? someone can tell me where I’m going wrong? The input…
-
1
votes2
answers149
viewsJquery does not run because of syntax
I analyzed my syntax and at first you’re right: $(document).ready(function(){ $('input[placeholder], textarea[placeholder]').focus(function(){ if($(this).val()==$(this).attr('placeholder'))…
-
1
votes1
answer1029
viewsDoubt Insert Image with Jquery?
Friends, Following the posted examples, I made the adjustments: public ActionResult ThumbNail(int largura, int altura, string caminhofoto) { if (caminhofoto != "caminho" ) { WebImage webImagem = new…
-
1
votes3
answers639
viewsAlign 4 Ivs always horizontally, with size proportional to screen size
I need to make 4 thumbnails track the width of the screen. Example: DIV1 DIV2 DIV3 DIV4 They are with a size X, horizontal in a row, picking up the whole width of the screen. I need to resize the…
-
1
votes1
answer1524
views$_FILES Undefined index error how to resolve
When uploading an image I get the error: Notice: Undefined index: imagem in C: Apache24 htdocs change_photo.php on line 9 Notice: Undefined index: imagem in C: Apache24 htdocs change_photo.php on…
-
1
votes0
answers71
viewsSite Buga all when hosted
I am learning front-end and I made a website using bootstrap here, I decided to climb it somewhere free to start the joke and to my surprise he is having some problems. The impression I have is that…
-
1
votes1
answer1983
viewsGet column values from a table and save the value of each column in an input
I have a table with 2 columns and I would like to, when clicking on some row, assign the values of each column of this row clicked on a <input type="text" />. I have a code that he assigns but…
-
1
votes1
answer127
viewsMerge image and map Google Maps
I have the following situation. The google map and above the map I added an image. The problem is that when I add an event on the map, this event does not work from the image.. and vice versa.…
-
1
votes2
answers276
viewsHow to load img in jquery
Hello folks would like to know how to load image inside an append(); follows the link append("<tr><td>"+value.codigo+"</td><td>"+value.nome+"</td><td>CARREGAR…
-
1
votes1
answer553
viewsHow to call the same Actionresult more than 1 time to refresh the page?
I need to call Actionresult each time I select a new record in the Dropdownlist calling only 1 time when loading the page. No Controller private string PegarCaminhoImagem(Int16 controle) {…
-
1
votes1
answer76
viewsFOR with getJSON file URL
I need to make a FOR with getJSON file. As is the correct form? selectOcorrencias = $.getJSON("http://izicondominios.com.br/appOperacoes.php?operacao=selectOcorrencias&condominioID=2"); for…