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
answer4563
viewsJavascript Category Filter
I’m having difficulty implementing a category filter on my site, which when clicking on a certain category, only it is visible. I’ve even managed to create a search filter, based on input typed, but…
-
0
votes1
answer554
viewsGet the href link on href itself
I have the code below <?php $paginaCorrente = parse_url($_SERVER['REQUEST_URI'], PHP_URL_QUERY); ?> <ul class="menu"> <li><a href="?l1" <?php if ($paginaCorrente=="l1") echo…
-
0
votes0
answers102
viewssave image from jquery with json_encode from PHP
I have a question when I will save the images coming from jquery with PHP json_encode. I have this jquery code to get the images $('#drag-and-drop-zone').dmUploader({ url: 'upload.php', dataType:…
-
0
votes2
answers134
viewsHow to merge several variables into one php and pass to Jquery in a link
I consulted on the subject and even managed to find some ways but nothing that could solve my case, I will try to be direct to facilitate. I have a table where I list some visits of some companies,…
-
0
votes1
answer132
viewsIn my photo gallery, I can’t open the images with Ligthbox separately, how do I?
I’m creating a photo gallery to insert my work in my portfolio. I was able to create the lightbox effect with jquery, however I would like you to open each image separately when clicking and not all…
-
0
votes1
answer36
viewsExpected out of order display
I’m sending requests, only this return comes in an unexpected order. I need the update guarantee to come first that support and consulting. There are times when it works, there are times when it…
-
0
votes1
answer1200
viewsSend data without PHP refresh
I have a form with n tables involved and needed to leave all the Insert in one file only, well this I already have. But I need it sent without refresh and for that I am using ajax. Here is the…
-
0
votes1
answer40
viewsKeep div on screen
I’d like to know how to make a div lively (I have function JQuery keydown that moves a div) but the div comes off the screen and I’d like it to be only 20 px of the margins. I have already put this…
-
0
votes1
answer39
viewsUsing two options simultaneously Jqueryui Dialog Widgets
I am trying to implement the Jquery-UI Dialog Widget so that the entire screen (and more) is completely populated by Dialogs of different sizes (width) and in different positions (position). But I’m…
-
0
votes2
answers722
viewsSimple ajax to reload a DIV every 30 seconds
I am the following javascript to reload a div every 30 seconds, but it’s not working , or error. Code: $(document).ready(function() { var $div_novospedidos = $('#div_novospedidos');…
-
0
votes1
answer31
viewsaddClass with Math.round
I’m trying to make a script in which when a sensor that is part of the test sends me a number 5, it changes the color of the table that is red to green. That way the test would be approved. However…
-
0
votes1
answer146
viewsstylizing a ul that will serve as a select
I’m studying here, more to learn a little even, and I’m trying to develop a select option with a ul starting from the select. The population of ul is already correct. $(".selectOption").on("click",…
-
0
votes3
answers947
viewsInsert PHP into Javascript
Hello I need to get the results of a SELECT in PHP and display in a ALERT within a function in JAVASCRIPT, where when performing the function JAVASCRIPT wheel the PHP and the WHILE. How can I do it?…
-
0
votes1
answer56
viewsTwo numbers don’t add up, they concatenate
You may already be bald to see problems like this. My problem, I believe, is a little different. I have a method (called transformParaContas) that transforms any kind of monetary value to be able to…
-
0
votes3
answers158
viewsStylize overflow Hidden
I have a ul which has "n" lis arranged vertically. Initially, she is styling overflow hidden, only for a part of it, specifically from the second li to simulate a select option. However, when I…
-
0
votes1
answer107
viewsI am unable to run the monetary mask by Jquery
I am trying to configure my inputs with monetary mask. I called the script as follows: <script type="text/javascript" src="js/jquery-3.2.1.min.js"></script> <script…
-
0
votes1
answer56
viewsHow to use the plugin botepage ajax correctly
I’m trying to use this plugin here botepage the problem is that I am not able to insert any content inside the Divs, on page 1 for example say I want to put "hello", on page 2 say I want to put "hi"…
-
0
votes0
answers34
viewsForm elements show and Hide with jquery
I have a form where 3 questions show the same part of the form, and your answers are yes or no, but when one of them is no and the other yes, it hides the form questions that are also valid for the…
-
0
votes0
answers173
viewsModify in real time
I made a simple script with Jquery that changes some texts in select of sizes in a store: <select> <option value="">Escolha seu tamanho...</option> <option value="476" price="0"…
-
0
votes1
answer74
viewsAjax does not return values on mobile device
beauty? It is the following, I have an ajax method that returns a json, the problem is that this ajax does not run on mobile devices. Always return me fail, however, on pc, everything happens…
-
0
votes1
answer839
viewstake jquery file from a form
I need to get a file sent from a form with jquery, the inputs type="text" I can get, plus the type="file" is not catching, I’m doing like this: How can I get the file sent by form? <form…
jqueryasked 7 years, 6 months ago Wagner Martins Bodyboard 698 -
0
votes2
answers220
viewsHide/Show in Ivs according to subclasses
I’m trying to make a code that shows and hides some Ivs in the click, I tried to use css to help me, but I couldn’t. By the logic at the bottom of the "topic" click it removes the display class from…
-
0
votes0
answers31
viewsEvent that identifies shooting another event?
I have a jQuery event that comes from a framework, and I need to trigger a specific event at the end of the shooting of this event that is not foreseen. It would be something like this: Framework…
-
0
votes0
answers20
viewsCreating a slider that doesn’t change the entire image
Good guys, to be more specific, I’m looking for something like this: the arrows in red would be buttons, the black part with the letters would be when the mouse Hover (the title "eyes" and the…
-
0
votes1
answer96
viewsWhy does DELETE give error?
I have the following function in jquery which gives the delete in the record. It even deletes the record but does not go to the success, he goes to the error. Why will it be? function…
-
0
votes1
answer122
viewsfile_get_contents($url) Error returned
Hello, I found a function here in the stack for a problem similar to mine but I’m having a problem. The function is: function file_get_contents_retry($url, $attemptsRemaining=3) { $content =…
-
0
votes3
answers41
viewsJquery does not run correctly
I’m creating a sidebar that will contain some accessibility options. The big one is, in parts the sidebar is working properly. 1º By clicking on the accessibility icon, the sidebar opens normally,…
-
0
votes2
answers1396
viewsSelect with States and Cities Search
I am here creating a form where the person should choose the state and after selected the list of corresponding cities is loaded in the other select, I am using a ready library city-states-js, so…
-
0
votes1
answer141
viewsJavascript - Logic Handling Data from Arrays
I have a very complex logic problem. I have to compare 4 arrays and make them work together. I will explain it better Example of how it can come: var mesA = [ "fev", "mar", "jun" ] var valorA = […
-
0
votes1
answer528
viewsValidation of Jquery/Ajax/PHP fields
I read some questions here on sopt, but I couldn’t find what I wanted. I made a basic validation with ajax and jquery that is working, but there is an unforeseen. Are two camps: email and team. HTML…
-
0
votes2
answers1107
viewsdisplay:None is not being applied
I have the following function: function exibeSelectUl () { $(".selectOptions ul > li").each(function() { alert($.trim($(this).text()) +'==='+ $.trim($(".selectOptions .selecionada").html()));…
-
0
votes2
answers112
viewsPaging with twbsPagination plugin giving problem
Well I made a pagination with the twbsPagination plugin, it works perfectly, but it does not list the amount of elements per page. What did I do wrong? I wanted you to list 4 elements per page. Look…
-
0
votes1
answer291
viewsHow to import external Javascript and put masks on inputs?
Hello, all right? I saw some tutorials on the internet to put masks input in HTML, and as I am new in Javascript I imported the external library as shown below, but I must have imported wrong or…
-
0
votes1
answer572
viewsCreate id field with Datatable Jquery Checkbox
I have the following datatable: function retorna_cliente() { $(".mostra_clientes .table").dataTable({ "bDestroy": true }).fnDestroy(); $('.mostra_clientes .table').DataTable({ "pageLength": 4,…
-
0
votes1
answer142
viewsHow to use csrf class in codeigniter with onchange event?
I have the following situation: Form <?php $atributos = array('id'=>'cadloja','class'=>'form-inline','role'=>'form','data-toggle'=>'validator'); echo form_open('',$atributos); ?>…
-
0
votes1
answer1386
viewsError: Datatables Warning: table id=datatable-checkbox - Cannot reinitialise Datatable - JQUERY
I have the following problem in building a datatable: Datatables Warning: table id=datatable-checkbox - Cannot reinitialise Datatable. For more information about this error, Please see…
-
0
votes1
answer484
viewsE-mail validation via jQuery
I am trying to do a validation in an email field, I even "can" do, but it is not 100% functional, I would like to cancel the button with the disabled attribute, until the user put a valid email, I…
-
0
votes2
answers144
viewsCollapse in bootstrap 4
I wish that when I click on one of the menus Collapse the others hide and I’m not getting, I’m using the following code in jquery, I don’t know if it’s right: $( ".card" ).on( "click",…
-
0
votes1
answer686
viewsHow to take the value of an input, according to a DATA attribute
I have the following table: <tr> <td>FULANO 1</td> <td>USUARIO 1</td> <td> <input type="text" data-id="1" class="form-control" id="senhaA" size="6">…
jqueryasked 7 years, 6 months ago Italo Rodrigo 4,344 -
0
votes1
answer970
viewsHow to solve this problem in Datatables?
I have a problem with Datatables that is keeping me awake. I have the following code. It even shows the datatable but the table functions don’t work. Next doesn’t even show the Prev. If I remove the…
-
0
votes1
answer312
viewsSearch in jQuery displaying the nearest TR as header!
I GOT THE ANSWER ON THE AMERICAN STACK: https://stackoverflow.com/a/46654887/588842 I got the following HTML and JS: FOLLOW EXTERNAL FIDDLE LINK: https://jsfiddle.net/qpouvped/…
-
0
votes0
answers319
viewsAccentuation with Multipart/form-data form and sql server using ajax
Hello. I have a problem that’s keeping me up at night. I am working on legacy code in classic Asp and need to register a form that contains pdf file and data (such as name, surname) and other…
-
0
votes0
answers36
viewsUl options contact facebook
In the facebook, When we go in the option to see the list of contacts we send orders, we have there a button written "Sent Friendship Request". By clicking on this button comes some options in list…
-
0
votes0
answers78
viewsError in jquery div display
Good morning, stack overflow I have the following problem. I try to display a content on the screen, part of this content gets duplicated. arrayObjCat9 = [];…
-
0
votes2
answers272
viewsProblem using append js element does not appear
I’m having a little problem in my append in the js I needed to replace one image with another when I click on one div then when I click the image set via ID some normal but the one that should…
-
0
votes1
answer215
viewsConflict when importing another Jquery in Wordpress
Hey, how you doing? I’m with a little problem that has already consumed me a lot of time, I’m trying to put a mask for time in an input field, the code is already ok and running the problem is when…
-
0
votes1
answer1464
viewsChange opacity gradually with scroll
I want to apply opacity at the bottom of my site, the footer is fixed on bottom and behind the rest of the site type effect Parallax. But I can not make it gradually become opaque, so scroll the…
-
0
votes3
answers25
viewsHelp with uncheck
I have a problem with my code. I’m new to jQuery. He’s perfect, I was able to do almost everything I wanted, except for one thing I can’t fix: I can’t get him to clear if clicked again, getting like…
jqueryasked 7 years, 6 months ago Erick Fontes 11 -
0
votes0
answers53
viewsHow to resolve Typeerror undefined functions of jQuery.nicescroll and Unitegallery annoyed in PHP files? Is it because of jQuery version?
Bootstrap 4.0.0 Beta uses jQuery 3.2.1 Unitegallery uses jQuery 11.0 jQuery.nicescroll uses jQuery 2 PHP use I only use jQuery 3. I don’t want to have multiple versions of jQuery. See the Javascript…
-
0
votes1
answer32
viewsGive Hide/Show items showing their contents
I am trying to display the contents of the clicked items, I have done this in several menus, but in this one I am having problem because I can not change the existing classes/Divs as it is a new…