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
answer162
viewsFilter JSON records by Javascript or PHP
I have a question about how to filter data when the customer fills in an input field. I am searching all server records (running PHP) through a jQuery JSON request and would like to know how to make…
-
1
votes2
answers478
viewsIs using Jquery on a PHP page possible?
I have a login page, in which there is a form, which sends the data of two fields (username and password) to a PHP file that checks. This php file uses a function already written in a class. In this…
-
1
votes1
answer66
viewsDynamic selects
I would like to know if it is possible to create dynamic selects on a page, identical to the free market advertising register. In fact, I’m trying to create an integration with exactly their…
-
1
votes1
answer475
viewsDynamic Select/Option filter
var escolas = ["UFSCAR", "USP"]; //var alunos = []; $(document).ready(function() { escolas.forEach(function(item) { $('select.lista-escola').append('<option>' + item + '</option>'); });…
-
1
votes0
answers209
viewsAsynchronous Request Jquery+Ajax+PHP returns empty object
I need to check if the cnpj is already registered in the database and return to the client if it already exists in the database, the problem that I do not want to happen the refresh of the page so…
-
1
votes2
answers1216
viewsHeader and html footer with css and jquery for all pages divided into sub-folders
I’m having a problem to call my header and footer on all pages, because when I put in sub folders inside the project it just doesn’t pick up and I tried everything to my knowledge but I can not…
-
1
votes1
answer227
viewsReload Jqgrid by passing filter parameters
It is basically to make the Jqgrid function receive parameters type(date: {} ), by the events .change and update the grid. I have a grid that is loaded along with document, but need to implement…
-
1
votes2
answers41
viewsWhen you click Select All, all checkboxes are marked
I have the following form where the user can mark all clients at once: When I click on Select All, it works properly, but when I uncheck one of the options, the checkbox Select All is still marked…
jqueryasked 6 years, 7 months ago user24136 -
1
votes1
answer61
viewsHow to change the value of a custom attribute?
I want to change the value of a custom attr via jquery, but without success. Follow the code below: $("#botao-01").click(function() { $("#img-screen").attr("data-image","img/bauru-02.jpg"); });…
-
1
votes1
answer93
views"Bug" in slideshow if staying too long outside the tab
I made a slideshow root with Jquery using setInterval to change the slides after a few seconds. It works fine, however, if I change tab and after some time come back, the animation gets "bugged" and…
jqueryasked 6 years, 7 months ago I_like_trains 1,430 -
1
votes1
answer768
viewsSelect dynamically in Materialize CSS
I have two selects, when I change the first one, there’s an event on change who calls a ajax to load the data of the second select, is working, but by including the Materialize CSS, I don’t know…
-
1
votes1
answer31
viewsFunction . not() does not work correctly
I have the following code HTML: <div id="mini-cart" class="mini-cart dropdown is-not-empty"> <span class="ic-cart"></span> <span class="count-cart"…
-
1
votes4
answers1182
viewsChange placeholder by checking radio with jquery
Hello, I’m trying to change the placeholder of an input by checking between 2 radio input values. Below is the js I tried to mount and html. $(document).ready(function () {…
-
1
votes0
answers671
viewsHow to change the value of a php variable using Javascript or Ajax?
Contextualization When registering a project by default (default) Status of Documentation is pending as a result of this configuration project tabs are not visible. If the user changes the Status of…
-
1
votes1
answer26
viewsError when changing a generated content within a <span> tag, automatically generated in Woocommerce
Trying to change the automatically generated "New!" word in Woocommerce as below: <span class="label-new">New!</span> And using the jQuery section below <script>…
-
1
votes1
answer1173
viewsDisplay success message after registration is completed via AJAX
I want to display a message like "loading" while processing the registration and another with "Registration completed", this is my AJAX code $.ajax({ type: "POST", url:…
-
1
votes2
answers1010
viewsDisplay rows from a table according to filters
I have the code below where I have one onchange that should filter the status of each request (hiding/showing the rows in the table), but it is hiding the header of the table. Code: <!DOCTYPE…
-
1
votes0
answers65
viewshow to use the Isotope plugin on 2 different grid
how can I use the plugin isotope in two grids distinct. for example I am using tabs of bootstrap in my first tab i have the first loading of the grid and the last tab I got the last shipment from…
-
1
votes3
answers96
viewsCompare inputs with the same class and no id
Hello, I have the following structure <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <table> <tr> <th>Valor1</th>…
-
1
votes1
answer359
viewsImage gallery with scrolling
I created a gallery and I would like it to only appear the first two lines, and the rest to remain hidden, so when the person rolls the scroll mouse, were appearing the others, until the end, only…
-
1
votes2
answers184
viewsIs it possible to set a timer before running a post/Reload on the page?
I have the Function below that at the end of a Reload operation on the page in order to update the status. It would be possible to put a wait time to run this Reload ? function…
-
1
votes1
answer155
viewsjquery how to receive data line by line in a loop
In the test.php file I have: <?php echo "<input type='button' value='Envia' class='btenvia'/><br><br>"; echo "<div id='mostradados'></div>"; ?> <script…
-
1
votes1
answer73
viewsInsert field into table and compare if already exists, with Jquery
Good morning! I am inserting products in a table with Jquery, similar to a shopping cart, and I need to compare if the product has not already been inserted before. I tried with the code below, but…
-
1
votes1
answer169
viewsPartialview not clicking on the default of Select2
I’m having a problem when I call my Partialview, it loads all the data in the View but not in the right format (layout) of Select2, in case when clicking the input appears the data, is currently…
-
1
votes1
answer667
viewsBack to top button
I created a basic script to display/hide a return button at the top of the page: $(document).ready(function(){ // Add smooth scrolling to all links $("a").on('click', function(event) { // Make sure…
-
1
votes1
answer2137
viewsUncaught Typeerror: $(...). validate is not a Function
I am using jquery validate and it was working normally, now it is returning me the following error, I already checked the references, I changed, but still with the same problem: Uncaught Typeerror:…
-
1
votes1
answer41
viewsDoubt with jQuery function
How this function jQuery finds the tag em to execute the method prependum() ? var em; $("#btn").click(function() { if (em) { em.prependTo("pre"); em = null; } else { em = $("em").detach(); } }); em…
-
1
votes2
answers168
viewsDynamic redirection with CSS or SASS
I have a website, and I’m working on responsiveness on it. I have a mobile version, similar to a web app, in a specific directory within the project. Currently when the screen resolution is less…
-
1
votes1
answer45
viewsSurveyjs catch the title tag instead of the name in the result
I’m using the library of Surveyjs editor, but in the editor the result is being saved using the name as a reference to put in the result. Example : Survey Result:…
jqueryasked 6 years, 7 months ago Carlos Lopes 185 -
1
votes1
answer35
viewsProblem with my client using jquery
I have a very unusual and strange problem... I am using the Jquery library, however, it is not being interpreted correctly, the problem is not in the code itself, ie, when I do the code even without…
-
1
votes0
answers72
viewsHow to get data from a modal page?
I have a main page with a simple form: <div class="col-sm-6"> <label for="tipo">Tipo de sessão:</label> <select class="form-control" name="tipo"> <option…
-
1
votes1
answer941
viewsJquery-Ajax Orange Query 5.5
I can’t get the ajax consult on Laravel5.5. Query form: <form action="ConsultaEmpresa" method="get" name="FormConsultaEmpresa" id="FormConsultaEmpresa"> {{ csrf_field() }} <input…
-
1
votes2
answers42
viewsShow and hide from bank
I’m doing this job <script> function ver_endereco(){ $("tr.tr_end").toggle(); } </script> In this PHP code <?php while($row = $result->fetchArray()) { ?> <tr…
-
1
votes1
answer52
viewsEvent in a single div with equal classes. How to do?
Greetings. I created some div inside a foreach, all with the same class, inside that div has an element that I wish, when clicked, show another div that is inside the parent div created. However, as…
-
1
votes1
answer97
viewsMy Mayor isn’t working and I’ve tried many ways and I can’t help myself
This is the code that I am trying to do the file only that the fadeOut effect is not working when I put Jquery, I have already verified that it is pulling the file only does not run the fadeOut to…
-
1
votes0
answers26
viewsValidation with Phonegap and Webservice
I am validating the login and password fields via Web Services, it returns me if the login is valid and generates a cookie number (done via sql), so far okay ,I can perform normal validation but I…
-
1
votes2
answers238
viewsHow to put the option to mark all Checkbox in Jqgrid
I need to put the Mark and Deselect option on all checkboxes listed by JQGRID I can’t imagine how to do it. Below the JS table. var grid = $("#jqGrid").jqGrid({ url:…
-
1
votes1
answer501
viewsautomatic zoom in the image
I have the following code: .zoom { overflow: hidden; } .zoom img { max-width: 100%; -moz-transition: all 0.3s; -webkit-transition: all 0.3s; transition: all 0.3s; } .zoom:hover img { -moz-transform:…
-
1
votes1
answer46
viewsdoubt sore or each JQUERY
I’m breaking my head and I can’t find the problem have a table that is created dynamically when I scan it shows the 0 position as null and after that starts to appear normal html screen row creation…
-
1
votes1
answer340
viewsHow to get a list of JS objects in Controller C# MVC?
I have an object with a list that will return me 3 or more items. I pass this object like this: var jsonObjs = JSON.stringify(arrayObj); alert(jsonObjs); CarregaNotas(jsonObjs); function…
-
1
votes2
answers165
viewsCount how many empty fields you have in the form with Jquery
I have the following fields from the database: <?php while($peListar = mysqli_fetch_object($sqlListar){ ..... $listar .= "<td style='".$fundo."'><input type='text' name='ValorI[]'…
jqueryasked 6 years, 7 months ago user24136 -
1
votes1
answer296
viewsAdd and remove select with button
I am developing a form in which I have a select that chooses states and capitals of brazil, but as those who fill can add more than one select I need to make a button add another select, is that in…
-
1
votes2
answers86
viewsHelp with Ajax Requests to get BD data
I am currently using this Code below to search the page with the products related to the requested brand. echo '<a class="marca"…
-
1
votes1
answer234
viewsGet value passed by Aria-Controls (Bootstrap tab panel)
How can I get the value passed by Aria-Controls of Bootstrap tab panel to compare from an Array of data to bring only the products of the category in question. Where to start the Javascript? This…
-
1
votes2
answers171
viewsHow do I send the src value of an img tag to the value of a text field?
How to send the src value of an img tag to the value of a text field? <script> // Inicia o Clipboard no elemento "button" function teste() { alert("t"); var src = $("#imagem").attr("src");…
-
1
votes1
answer36
viewsJquery Selector in a User Control, within a gridview
Good afternoon, I have the following code: <asp:GridView runat="server" Style="border: 0px !important;" ID="gdvDadosHistoricoMedico" OnRowDataBound="gdvDadosHistoricoMedico_RowDataBound"…
-
1
votes1
answer345
viewsHow to pass a variable parameter to jquery
Well, I have a button that when clicked should open another page, by clicking via Ajax the results of the bank. The problem is I have to pass an id through that button for the Ajax request. Making…
-
1
votes2
answers391
viewsconsumptionwebservice Rest returns: No 'Access-Control-Allow-Origin'
Prazados, I have a problem to consume a third party Webservice, when trying to find the same by java script the return I receive is: Xmlhttprequest cannot load…
-
1
votes1
answer914
viewsSelect hide/show Divs according to the selected value (jquery)
I have a select and some Divs like this: <select name="numerounidades" id="numerounidades"> <option value="1">1</option> <option value="2">2</option> <option…
-
1
votes1
answer137
viewsCalling Jquery function inside a For loop
$("#divOpcoes").fadeOut(500, function () { $(this).text('Opção ' + indiceAtual + ".").fadeIn(500); }) The line above is within a for loop and "indiceAtual" variable is incremented with each loop…
jqueryasked 6 years, 6 months ago M. Bertolazo 653