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
votes2
answers277
viewsReturn Multiple values with PHP jQuery
I have a Function that returns me the values of a Grid in a Modal I call the function it makes a Select in PHP and returns me the data within a Modal. Except that besides bringing this data I need…
-
0
votes1
answer305
viewsShow and Hide field with Select
I’m trying to display some fields of a form and partly I can make it work, but not completely even already reviewing the code. I need to show the inputs with the labels and hide inputs with their…
-
0
votes0
answers26
viewsCSS + Waypoints progressive circle
Fala galera, I have a Progress Circle (pure css) and everything is working perfectly, animations and stop at the right place. The problem is that the animation is happening before the scroll reaches…
-
0
votes1
answer33
viewsSet amount of returns per function that filters JSON
I have the following code to filter one JSON, it works perfectly, the only problem I’m having is to choose the number of results displayed. (currently only displays a single result). var elemento =…
-
0
votes1
answer42
viewsRun Ajax first
The last line of the code below is the first to be executed, and I need the function containing this ajax to return true or false, but when I put to return inside Success,error or complete it does…
-
0
votes2
answers283
viewsHow to launch/stop via jquery a css animation (which is being triggered by css Hover)
https://jsfiddle.net/x1mmgryw/2/ Follow the example above that I created, from a page animation driven by Hover css http://ianlunn.github.io/Hover/. But animation only works if the mouse is on top…
-
0
votes1
answer603
viewsload ajax combo when opening page
I have the code below to load the cities: $(function(){ $('#cod_estados').change(function(){ if( $(this).val() ) { $('#cod_cidades').hide(); $('.carregando').show();…
-
0
votes0
answers20
viewsPluing jQuery TE 1.4.0 caught with too much text
Guys I’m using the plugin, jQuery TE 1.4.0 , http://jqueryte.com/. For being very simple and easy. He attends me 100%. However I am having a problem, when I put a very large text that I copy from…
-
0
votes2
answers98
viewsPass variables in the Intel getjson XDK URL
I started to study javascipt now and I need to pass two variables to a sum method with getJSON and I don’t know how to do it. I created my app with XDK Intel, the server created with Delphi xe2…
-
0
votes2
answers370
viewsJavascript error - Datatables
Hello I already have a code that works on the dataTables on a page, so I took the template and the only changes I made was rename the js , rename function $() and . column(I placed the column…
-
0
votes1
answer547
viewsHow to Make a checkbox not selected if there is no previous checkbox selection?
I have a stack of tuition, where each one meet in a select. I would like, at first, all of them to be disabled except the first check, and when enabling the first check, the second check could be…
-
0
votes1
answer40
viewsHow do I change a data table line when selecting it?
In this code I can select it and in the console.log have access to the information, but I don’t know how I could change it: $(document).ready(function () { var oTable =…
-
0
votes3
answers635
viewsAdd data from array
I have an array that data comes from the user’s filled form and make a map: dados.map(element=> { var x var number1 = parseInt(element.preco), number2 = parseInt(element.peso) var tota = number1…
-
0
votes1
answer179
viewsCreate dynamic table header
I’m trying to create a dynamic header based on an array that the function receives, the structure I tried, and it didn’t work, is the following: function createDynamicHeader(columns) { var table =…
-
0
votes2
answers1138
viewsJquery - Make ENTER trigger a button
I have a code in Javascript/Jquery that I wanted to also execute the function or when clicking the button, or that the button was triggered with enter when typing. Detail that this is just a test…
-
0
votes1
answer600
viewsperform a checkbox validation per row of a table
I have a page with a table where each row has 3 checkbox and each column has 11 lines with the 3 checkbox, I needed to do a validation where at least one checkbox of the 3 of each row is marked, and…
-
0
votes2
answers1534
viewsEvent click Jquery
I’m trying to use jQuery to do something like: if($('#id').click) { //Eu sei que quando este elemento //for clicado ele vai fazer algo aqui, mas, eu queria em um //outro momento fora da função saber…
-
0
votes1
answer271
viewsCatch tab id - jquery
I’m trying to get the id of the tab in this way: var id = $('.tab-pane').find(':required:invalid').closest('.tab-pane').attr('id'); Now I’m trying this way: $('#FornecedorNovo').on('submit',…
-
0
votes2
answers1572
viewsHide modal by clicking the bootstrap "Close" button
Well, I have the following file with a modal that was made by a friend to me: However, when you click on Open Small Modal works very well, but when I then click on close the modal does not close…
-
0
votes1
answer79
viewsReturn value when $.getJSON is finished
I have a directory with subdirectories, and the code checks if these subdirectories are valid by consulting the settings.json of them, if it has (which is mandatory to be valid), but the $.getJSON…
-
0
votes1
answer41
viewsReorder elements of a query on the screen
I have an application in Django and need to reorder the screen elements when the user decides to sort by date, popularity, etc.. I would not like to submit a new query each time the user selects a…
-
0
votes1
answer51
viewsValidation javascript field with Split
I need to do a javascript validation, which picks up how many are filled, the mask is like this: 000,000,000,000 etc, in case it should pick up 4, as it is the sequence of 4, each thousand account…
-
0
votes1
answer82
viewsmove variable to jquery function
I need to manipulate the button clicked inside this function, how to pass the btn variable inside it? $('.btn_excluir').on('click', function () { btn = $(this); swal_confirm('Deseja realmente…
-
0
votes3
answers82
viewsReceive result from an ajax as return
Within the following scenario: funcao1 = function() { $.ajax({ success: function(data) { return data; } }); } funcao2 = function() { var dados = funcao1(); } It is possible that I receive, even if…
-
0
votes1
answer28
viewsResend form and validate again after validation failure
Hello I have a form in which all fields are being validated by jquery, however when the validation fails and shows the messages I can’t resubmit and keeps showing me the error message Follow the…
-
0
votes2
answers678
viewsIs it possible to definitely change the style of a CSS class using Javascript?
I have the following code snippet: $("#mudarcss").click(function(){ $(".teste").css("background-color", "blue"); }); $("#adicionardiv").click(function(){ $("#conteudo").append("<div…
-
0
votes1
answer75
viewsGet div high up in the hierarchy
I have this hierarchy in HTML <div class="footer"> <div class="send_show" style="height: 754px;"></div> <div class="forms_sends"> <span class="sends"> <div…
-
0
votes1
answer475
viewsAdd class to multiple elements, one at a time in Jquery
I have a problem with the following code: $("button").each(function(index){ // add the class setTimeout(function(){ $(this).addClass("varrimento"); }.bind(this),index*5000); // remove the class…
-
0
votes3
answers14234
viewsRemove options from select with jQuery
I’m trying to take out all the option's of a select I have, but I’ve used up all the code of the jQuery but they don’t come out. I’m making a filter where the person will select a city and after…
-
0
votes1
answer24
viewsHow to access the Object window from another page
I am making a request via Ajax, I can capture the html, but I wanted to have access to the Object window of the page he made the request, this is possible? Example as I am using.…
-
0
votes1
answer107
viewsHow to pick up specific item In the Laravel Blade
How do I pick up a specific item on Laravel Blade? Example: $(document).ready(function(){ var id = 1; $('body').append('{{ $projeto->'+id+'->name}}' }) <body> Deve Aparecer aqui o nome…
-
0
votes1
answer39
viewsform to not connect to google sheet
Hello I need some help I’m making a form following these steps Link and it’s not working I created by following the steps that are on this site . But I think the problem is in my code and why it’s…
-
0
votes0
answers134
viewsJavascript function returns Undefined
Hello ! I have a Javascript function where I use ajax , I need the return of this function to be the data that is returned by ajax. I can get the return smoothly but I can’t assign the return value…
-
0
votes1
answer614
viewsWhat Way XPG FTP Access Via Javascript
You can access my free account on the XPG hosting server, through Javascript? I wonder if it is possible to make a connection with Javascript only with an FTP server(ftp://ftp.xpg.com.br), to "Send"…
-
0
votes1
answer45
viewsHow to run an IDE with ajax
The difficulty in question is how to recover the TH/TD id or class and the code is in a variable inside a FOR I will try to explain with some images . After a search in the database and I can list…
-
0
votes2
answers343
viewsHow to do a countdown with jQuery that restarts weekly
I have to do a countdown for a promotion. I need this counter to restart every Tuesday at 00:00 hours so it looks something like this: "Only 6 days left 12 hours 42 minutes and 37 seconds left until…
-
0
votes2
answers34
viewsRefresh page when deleting
I have this function to create an alert before deleting and call it on the button: function ConfirmDelete() { return confirm("Tem certeza de que deseja excluir esta Requisição?"); } <button…
-
0
votes1
answer25
viewsJson does not click on lib Typehead
beauty? I have a Json whose structure has following: [{"id":1,"nome":"teste"},{"id":2,"nome":"teste"},{"id":3,"nome":"teste3"}] I want to use it in this type head code but it does not load... In the…
-
0
votes1
answer118
viewsBreak loop on page
I have a problem, that I researched and thought how to do, but I could not solve. I have a select on the page that needs to be populated after a condition is met. And after that, it needs to query…
-
0
votes2
answers85
viewsAdd form fields with jQuery to be sent in php
I am using the following code to add a new set of fields to a form that will be emailed in php $(document).ready(function() { $("a[id='addProd']").click(function() { var domElement = $('<div…
-
0
votes0
answers48
viewsHow to get a javascript variable from another page?
For example, on a page you have a script tag like this: <script>var X = "variável que quero pegar";</script> How could I get this variable "X" on another page just with the url of it and…
-
0
votes2
answers530
viewsJquery - Compare 2 arrays in each
I have the following function: function pre() { $.ajax({ url: "arquivo1.php", method: 'POST', dataType: 'json', success: function (data) { $.ajax({ url: "arquivo2.php", method: 'POST', dataType:…
-
0
votes0
answers33
viewsSend a CANVAS by email via Phpmailer
I am creating a simulator with cart, where when the customer adds the simulated product in the cart has to send the generated print along with the email to the commercial. But I can’t think of a way…
-
0
votes1
answer251
viewsJquery validate with type button
Hello, I have a form that uses direct javascript to send the data, and its type is button. <button type="button" id="login_submit_patient" class="btn btn-focus m-btn m-btn--pill m-btn--custom…
-
0
votes1
answer64
viewsLoad variables in external php
I have a page that I need to open several modals, not to compromise in loading the page I decided to call the modals only when the user requested it. I did the following AJAX function: function…
-
0
votes0
answers59
viewsHow do I get a JSON file to pick variables in Javascript?
It’s a Google extension where I copy a text from a page and I copy a JSON with what was copied, but I’m not sure how to do it correctly. I managed to do this part but I’m not sure if I have a JSON.…
-
0
votes1
answer24
viewsFocus on a field with maskedinput
Good morning, you guys... I have in my form a text field with recursive entries. How do I p/after sending a typed value, clear it and get ready for the next entry ? As soon as I type the first…
-
0
votes2
answers126
viewsI can’t read this JSON
This is a. json file I created just to understand { "campo": [ {"nome":"Lucas vidotti"} ] } I know that to read this value with jquery I need to do $.getJSON and manipulate by key, but I’m not able…
-
0
votes1
answer93
viewsHow to return data from a json file in an increasing way, different from the root of the objects?
i want to return data from a json file, but I want it to be printed on the bottom page up, that is, the most recent data, which by default is written from top to bottom in json, always appear at the…
-
0
votes1
answer138
viewsMenu Hover Jquery
How can I fix that hover to be able to click the link button? I always have problems with submenus, if anyone can help. $(function(){ $('.menu-toltip').hover(function(){…
jqueryasked 8 years, 10 months ago Hebert Lima 987