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
-
0
votes1
answer203
viewsHow to make a jquery global variable?
I have this following variable: Site = { Alert: function(titulo, conteudo, data){ var id = Math.round(Math.random()*10000); } } I’d like to access it anywhere in my code, specifically here: User = {…
jqueryasked 7 years, 2 months ago Paulo Sérgio Filho 122 -
0
votes1
answer47
viewsHow to create a layout within Jquery and popular with data within a JSON
To create my image database and I have a page that I CURRENTLY populate by iterating a list(c#), follow the code: @{ List <ImageIndexer> imagesFoundList =…
-
0
votes1
answer21
views.position() giving error - Jquery
I’m getting the following error: Uncaught ReferenceError: position is not defined What’s wrong with the code? $(document).ready(function () { $('.main_menu a').click(function () { var g = '.' +…
-
0
votes1
answer127
viewsJS How to auto-refill an input with Javascript?
Hello I need to make a button that when clicking it automatically fills the input fields. HTML <button type="button" id="botao">Auto</button> <input type="text" id="nome">…
-
0
votes0
answers57
viewsUsing Circle as a mask with Google Maps Api V3
I have a circle, and multiple rectangles, which I paint with some colors, but, I just want to see the colors inside the circle, not outside it. Example I just want to see the colors of the inner…
javascript jquery google-maps front-end google-maps-api-3asked 7 years, 2 months ago Matheus Morett 1 -
0
votes1
answer1537
viewsLaravel 5.4: AJAX request using route with JS variable?
I need to use a route from Laravel within the AJAX request code. The way I built it doesn’t work, but it doesn’t work. I believe the variable call (servico) you’re wrong, because I put a number…
-
0
votes2
answers947
viewsHow to perform a simple state and city search with jquery and json
This is my json test and precise, through the keys "ce" and "fortress", perform a search of their respective data. In this case, the search is done by AJAX which has been subjected to a POST through…
-
0
votes1
answer487
viewsHandle Cache with Jquery
Hello I need to work with the cache of all browsers, I need to store data in the cache and then read using Jquery. Does anyone know any site with tutorial on the subject ? Thank you…
-
0
votes4
answers3827
viewsPercentage Mask
I need a percentage mask with the library jQuery Mask Plugin v1.5.4. What I am trying to do is that the user can report a value from -99.99 to 99.99. I’m trying like this:…
-
0
votes1
answer608
viewsContent loses formatting when viewing the Asp.net mvc print
I have a page for printing, it was made with bootstrap, I would like to keep the layout with the same formatting, I am doing this way: thanks <script> function cont(){ var conteudo =…
-
0
votes1
answer391
views -
0
votes1
answer33
viewsHow to unlock accordions even when some exceptietion
I have a screen that releases the accordions once the client’s code is validated with the personal information, etc. But if any exception he locks up accordions, how could you do to leave released…
-
0
votes1
answer168
viewsRelative Position of the Table row
I have a table with 50 lines Of these only 10 are visible Added the css class "ux-select" to line 5 The code $('table tbody tr:visible.ux-select').index() will tell me what the row number in the…
-
0
votes1
answer322
viewsHow to delete a product with ID in sessionStorage
I have a function that takes the product id and this id checks the product of a sessionStorage. How do I get him to delete the id product? //dadosdoproduto se refere ao seguinte método dadosproduto:…
-
0
votes1
answer32
viewsChange a class search in jQuery to a word search
I’m sorry if I wasn’t clear on my question. I’m starting with JS and jQuery And my question is this: in the code below, is there any way that instead of searching for classes, searching for words?…
-
0
votes1
answer51
viewsSubmit using Ctrl+Enter or Click the button
Currently I use this code to send my messages. $('#chatEnvia').click(function() { $.post( "inc_chatEnvia.php", { acesso: "ok", msg: $("#chatEscrita").val() }); }); I wonder, how do I stop when…
-
0
votes1
answer30
viewsProblem to query inside the second Dropdown
Always enter ajax error: error: function (ex) { alert('Failed to retrieve vigararias.' + ex); } Screen error: Failed to Retrieve Vigararias. [Object Object] View: <script…
-
0
votes0
answers341
viewsHow do you get the focus off a button?
I have a button and the same after the click I would like to remove the focus using javascript, detail do not use mouse using this button on a screen touch, no mouse or keyboard. I use the following…
jqueryasked 7 years, 1 month ago Catana Rahmeier 21 -
0
votes2
answers1101
viewsgetJSON Ajax for JSON with multiple objects
To search for data in a JSON simple, like: { "chave1":"valor1", "chave2":"valor2" } I use something like this: $.getJSON(dados, function(json) { $.each(json, function() {…
-
0
votes2
answers54
viewsHow to sort the DATA of the Jquery url
I’d like to sort the names of data states in ascending order. How do I do this? function retornaEstados() { var opcaoCadastro = ""; $.ajax({ url: urlBase + "estado", method: 'GET'…
-
0
votes4
answers440
viewsMultiple ajax requests using jquery
I have this code over and over and I wanted to simplify it into a kind of plugin or function. Information I usually use, Type => 'get' or 'post' and the url, and the return I deal with in…
-
0
votes1
answer4369
viewsWhy are you giving "Uncaught Referenceerror: getSetorObj is not defined"?
You are saying that "getSetorObj" is not defined, but the method exists and is in the Map class. The error is at line 38 of the script. $(document).ready(function(){ var jogo = new Jogo();…
-
0
votes1
answer131
viewsModal when accessing the site
Could someone please pass me a simple jquery code? I only need a modal ( div ) to appear when the site is accessed and contains a "close button".
-
0
votes0
answers43
views -
0
votes3
answers154
viewsJavascript remove() does not work
See the script below. Why remove() doesn’t work? I recently posted on this link: post something similar, but in the other case, the problem was why the button was inside a form, but this time there…
-
0
votes3
answers63
viewsI cannot retrieve JSON in jQuery
I’m having trouble showing off uf in the following situation: $.post("<?php echo site_url('Welcome/viacep'); ?>", {cep: cep}, function(dados){ alert(dados.uf); }, 'json' ); But when I change…
-
0
votes1
answer292
viewsSQL search for more than one type of property, city and neighborhood does not work properly
I got a template ready with some problems in plugins and queries. Of the 6 select fields to do a real estate search, 3 of them can select more than once, property type, city and neighborhood. The…
-
0
votes1
answer387
viewsRun the Submit of a form in an element click event
What is the best way to perform a POST at the click of a button in an Asp.net MVC form. View Create: @model Projeto.WebERP.EntityFramework.Entities.Pais @{ ViewBag.Title = "Create"; } <div…
-
0
votes1
answer89
viewsAjax Stacking Requests
I have a web page that displays a list of people registered in my comic book. Each name is a hyperlink that, when clicking it, an Ajax function opens a modal containing specific information of the…
-
0
votes1
answer126
viewsProblems with Append and slideToggle
I have a little problem here, and this is it. I have a timeline that displays some posts, by ajax I load more content and make an append, the new items that are displayed do not catch the…
jqueryasked 8 years, 8 months ago Bruno Luiz 51 -
0
votes2
answers1149
viewsHow to Put color over the image when passing the mouse?
Place color over image by hovering mouse? Normal image: Image with black color superimposed: How do you do that?…
-
0
votes1
answer72
viewsTrouble with Nan
Someone can help me with this site. The front part displays the prices only that just below displays again with Nan. When you enter any product, Nan disappears. Any hint how I can fix this? Any…
-
0
votes1
answer18
viewsJquery function . date
Can anyone enlighten me or explain to me the difference between these two situations $.data(this, 'timer') Or $(this).data('timer');
-
0
votes1
answer78
viewshow to put different color in a title with jquery array
I would like to put different colors in title with a jQuery array, More without getting random, in case are preset colors I’m starting now to program, and would like the help of vcs. from now on…
-
0
votes0
answers159
viewsHow to make a dropdown menu in wordpress?
I have an html code of a website I’m developing. <!-- mega menu --> <div class="menu"> <!-- menu start --> <nav id="menu-1" class="mega-menu dark"> <!-- menu list items…
-
0
votes2
answers278
viewsChange the website background daily automatically
We are finalizing a system where the login part has a background with a certain image, but we want to make a new image appear every day, the same as in Bing. Can you do this in javascript or jquery?…
-
0
votes3
answers604
viewsDynamically Place Plot Value
I have a form with 3 input 1 Total value 2 plots 3 Value of the Tranche I am specifying that by placing the total value and the number of installments, already fill in the value of the installment.…
-
0
votes1
answer2545
viewsHow do I move the mouse over a particular div when another element appears?
My goal is to have an invisible div, and when you mouse over that invisible div, make another div appear? example: <div class="invisivel"></div> <div class=visivel"> Olá…
-
0
votes3
answers2476
viewsHow to list json by separating key and value correctly
I created this example to illustrate an attempted listing of JSON seeking to separate key and value: var meuArray = { "1": "Administra\u00e7\u00e3o", "2": "Agronomia", "3": "Arquitetura e…
-
0
votes1
answer39
viewsHow to activate certain CSS from certain scrolling?
Good morning I would like to know how to activate certain CSS from certain scrolling. For example, in some portfolios, in the skills part, most put a circle that when descending the full page…
-
0
votes2
answers184
viewsEnable PHP page with jquery
We took a system from which all pages are in HTML. Only that the customer wishes that each person who accesses his site, the information as IP, date and time were stored in a database. About the…
jqueryasked 7 years ago user24136 -
0
votes1
answer373
viewsJavascript Calculate Portion of a value coming from checkboxs
I have here a code for when checkboxs are selected add a value to a label, and another code for the user to enter in an input the total value and select the number of installments for the operation…
-
0
votes2
answers501
viewsJquery Datatables filter for full phrase
I’m using Jquery datatables, I always use it, but today I have a situation that I did not find in his documentation. And the following, when the query is done it brings me the value of several…
jqueryasked 7 years ago Willian Coqueiro 599 -
0
votes0
answers48
viewsTextbox problem for autocomplete
I can not enter the method that makes the query to return the nomes and the id´s of the person. View: <script type="text/javascript"> $(document).ready(function () { });…
-
0
votes1
answer264
viewsChange which "type input" appears
I have a code that makes form with questions and various types of answers("text, radio, check-box") and would like a code with jquery to place in my html that when the person selects text-option…
-
0
votes1
answer848
viewsjquery - variable pass from one page to another
well, I have this scenario... my index.html calls another page (home.html) and there are two variables in the index that I want to take home to make my decisions... index code.…
-
0
votes2
answers253
viewsDoes not load data into the picklist (jquery-ui + Angularjs)
using: https://code.google.com/archive/p/jquery-ui-picklist/ I can’t load data from my client table into the picklist. It was already working on another template, changed the template in the company…
-
0
votes2
answers106
viewsHow to make menu appear as mouse scroll
something similar to the menu of these two sites: http://fenixsub.com and http://www.intoxianime.com where the scroll action makes the menu appear.…
-
0
votes1
answer57
viewsShake Animation won’t stop?
I have a problem with the Animation shake, once it starts, I can’t make it stop var shakeit = null; function abre(a){ clearInterval(shakeit); } function fecha(){ var shakeit =…
-
0
votes1
answer333
viewsHow to disable Jquery controls when loading the page
Include the JS Code below to disable the fields when checkbox is checked. However, when I load the page with it marked the fields need to be disabled, and the command only disables them when the…
jqueryasked 8 years, 8 months ago Gleison França 560