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
answer838
viewsDelete Label text with jquery
I need to delete the text contained within the tag label ("Justification") with jquery, follow the code: function add_text() { if ($("#tipo").val() == "Falta") { $(".b").remove();…
-
1
votes2
answers5148
viewsRemoving . append() jQuery
I have several buttons where at the click of it directs to an Ajax request passing as parameter the id of a product and through an external file, according to it is added to the cart but this is not…
-
1
votes0
answers94
viewsList in PHP using Next and Previous
I have a system of next and previous with zoom What I want is that when I click on next or previous product change by ID from the Bank. and in the zoom show the zoom of the image that is on the…
-
1
votes1
answer2098
viewsneed to make the form fill the info from the search by cnpj
Below is an excerpt of the code. I have doubts about how to make, when clicking SEARCH, the CNPJ is found on the site receitasws and the fields below are filled:…
-
1
votes3
answers311
viewsHow to simulate click on another HTML element?
In this image below it is normal now, but every time I pass the mouse over it is placed the element figcaption in the image, that figcaption I used to paint the picture black. Here, the image before…
-
1
votes1
answer62
viewsChanging the logic - jQuery
I have several buttons from which you add and remove products from an external file, but that’s just a detail. Every time the buy button is clicked, the product is added, the button is "changed" to…
-
1
votes2
answers37
viewsCheck link depending on content starts query
I need to load a "fake Download" when a link in the menu is triggered, but in this menu some links are empty <a href="javascript:;"> or <a href="#">, need to identify only these via…
-
1
votes0
answers62
viewsRight way to make the autocomplete
I got the following script autocomplete: $(document).ready(function () { $("#id_cliente").autocomplete({ source: function (request, response) { $.ajax({ url: "/PreVenda/CarregaClientePorId", type:…
-
1
votes3
answers842
viewsDisable and maintain click
I got three columns in one of these <td align="center" height="240" width="380" > <img src="imagens/modelo3_thumbnail.png" alt="" class="imagemModelo"> </td> In my JS, I want that…
-
1
votes1
answer87
viewsSend and Remove from database with Jquery
Hello! I recently did another post here but it was poorly explained. I was wanting to make a form that makes an Insert in the bank and also remove. I created a small system of titles, so users can…
-
1
votes1
answer169
viewsJava Web + Ajax + Servlets
I’m having a hard time trying to get the date in Ajax. When I run the code, I get the status 200 and network in the Chrome debugger I can see the return, but I can’t do anything else with the date,…
-
1
votes2
answers884
viewsPopular inputs with Json file in jQuery
I would like to know how to fill in some inputs through data from a json file with jQuery. Follow the data in Json: {"data":[…
-
1
votes1
answer417
viewsjQuery returning r.fn.init()] strange error
So I was doing a school project and I came across a really weird mistake at jQuery. I repeated basically the same programming step and from the third time the code does not work. I tried to identify…
jqueryasked 7 years, 2 months ago Felipe Henrique Cardoso 13 -
1
votes2
answers308
viewsHow to duplicate select without previous option
The code below performs the insertion of a new select by clicking the button, but this new list should be composed only with the remaining items, ie the new select shall not possess the option…
-
1
votes3
answers66
viewsModify element through Javascript and "warn" page that element has been modified
$(document).ready(function(){ $("#myTextarea").change(function(){ alert("text area changed"); }); //$("#myTextarea").keydown(function(){ //alert("text area changed"); //}); }); setTimeout(function()…
-
1
votes0
answers162
viewsHow to pick up inputs with jquery and ajax
I am with the following doubt I have a web application I want when logging into the homepage "index.html" take the 'name' and 'email' and put with jquery in another page 'paginaprincipal.html' . for…
-
1
votes2
answers371
viewsAdd + 1 to current number (Jquery)
Hello! The following function below should add + 1 to id current, however, is not working, as opposed to adding, is adding + 1. Example: If the current ID is 1, using the function, the next ID (1 +…
jqueryasked 7 years, 2 months ago Wagner Fillio 1,328 -
1
votes2
answers1553
viewsCreate plot table dynamically with jquery?
I have a select with amount of plots, and would like to add the rows in the table dynamically with the amount of plots selected. example: $('#simular').click(function(){ $('#table').show(); var…
-
1
votes1
answer127
viewsReplace default CTRL+F from browsers with a jQuery event
Where I have tables on my system, in almost all used the plugin dataTables to customize, but my plugin ta a little modified. In the modification in question, the search field inside the table is…
-
1
votes0
answers790
viewsAssigning value to an input - jQuery
I have two input type="hidden" from which I make an Ajax request to an external file in order to assign values to it. The request is returning me the value correctly, everything is right in it, but…
-
1
votes1
answer599
viewsHow to recover PHP array for javascript comparison?
I have a code in javascript that sends some elements of the page to another in PHP via ajax and there are made some comparisons. Then it returns me this array with the function print_r() : However,…
-
1
votes1
answer56
viewsUpdate price within a box with jquery
I have a page with several boxes containing some information and the price of the product, a URL and a select, when the person select a different option in select the price of the product will be…
-
1
votes1
answer346
viewsModal does not open in the second click
I have the following button: <button class="btn btn-default botao_leitura_biometrica" id="" style='border: solid 1px #666'>Lectura Biométrica</button> This should open a modal: <div…
-
1
votes2
answers317
viewsProblems with Onchange in select?
I have an event of the button that triggers an ajax that loads the data as an example. $('#table_com_parcelas tbody').append('<tr><td class="align">' + x + ' de ' + parcelas +…
-
1
votes1
answer291
viewsJquery - Select and deselect elements on the page
I have a screen with several Ivs that are draggable. However, I need that when the user clicks on them, it creates an edge around it and adds some options (delete, for example). But I want that when…
-
1
votes3
answers451
viewsPagination in the photo gallery
Good evening everyone, I need help with the following code snippet and a photo gallery and I need 9-in-9 photo pagination I’ve tried everything and I can’t if you can help me there <!DOCTYPE…
-
1
votes1
answer221
viewsDoesn’t Onblur work on dynamic inputs?
I’m making a system where it loads the inputs as selection select, but as they are dynamic is not working, what I need is when selecting as payment check, the inputs that are loaded load the same…
-
1
votes2
answers1086
viewsCompare two values with jquery
Like I do to compare two variables. I have a variable that brings the neighborhood id, called bairrocadastrado, it returns the neighborhood ID equal 1093. Soon I have a foreach that returns all the…
-
1
votes2
answers650
viewsObject orientation with jQuery/Javascript
I’ve read several things about it,: var classe = function () { var metodo = function () { return 0; } return { init: function () { metodo(); } }; }(); jQuery(document).ready(function () {…
-
1
votes1
answer82
viewsStop a Function with jquery?
The problem is this. I have a function called auto() that opens a div after 6 seconds when the page loads, besides said there is a button that if it is clicked, does the same. But if I open and…
jqueryasked 7 years, 2 months ago I_like_trains 1,430 -
1
votes2
answers268
viewsDoubt with Jquery Load
I have a menu that I will use on all pages, so I want to upload the content: I’m doing like this: <head> <meta charset="utf-8"> <!-- This file has been downloaded from Bootsnipp.com.…
-
1
votes1
answer1377
viewsSelecting row information in an HTML table
I have the following code: var clicado = null; $('.clicado').click(function(){ clicado = $(this).val(); $('#mostrarId').html(clicado); }); <script…
-
1
votes1
answer789
viewsJavascript/Jquery/HTML Mobile Button
Personal need to make a mobile button (click and drag anywhere on the screen), I am not understand why this is not working... Someone knows? .corpo{ background-color: #555555; } #button { position:…
-
1
votes1
answer110
viewsPass files by ajax
I am creating the product registration form of a website, and in it, all forms are submitted by ajax to an api. The problem is that in this particular form I need to send images to the server. I am…
-
1
votes2
answers4603
viewsChange font size Javascript/HTML/Jquery
created this application in HTML/Javascript/Jquery ... I wonder how I put a button to increase font size within the textarea. Anyone have an idea? <html> <meta charset="UTF-8"> <!--…
-
1
votes0
answers59
viewsProblem with $_POST
Well I’m learning to program php and I have a lot of difficulties in making the junction of it with other language, right now I’m doing a job and I have a problem: When I click on one div the image…
-
1
votes2
answers80
viewsLoad code according to device
The excerpt below is similar to what I have on the website homepage: <div class="text-center"> <div id="minhaClass"> <a href="<?php echo get_site_url(); ?>/texto-1/">texto…
-
1
votes0
answers259
viewsHow to edit data from a table in a modal bootstrap?
How to load a modal bootstrap through a link within a tag < td > and send together column value Code, Name and Date example: jquery: $(document).on("click", "#lnkEditar", function () {…
-
1
votes0
answers153
viewsJquery cookie - Display notification only once
I need a notification to be displayed as soon as the login is done, but when updating the page in the browser or F5, the notification is not displayed again. Using the cookie, is there any way to do…
-
1
votes2
answers658
viewsPass button value to modal
I need help with the javascript code, I’m new and I’m not really sure what the syntax is. What I need is to take the value of this button and play on the id_usuario label, as I do? <button…
-
1
votes1
answer63
viewsHow to store span tag texts in a jquery/javascript array?
I need to get the text that is contained between the tags span. That’s the structure I’m running through: <table> <thead> </thead> <tbody> <tr> <td colspan="9"…
-
1
votes1
answer100
viewsHow to make animation occur multiple times
I have a project that I’ve imported animate.css so that the transitions would be funnier, but one of them only occurs to me once. var check = true; $(document).ready(function(){ $(".p2").hide();…
-
1
votes3
answers191
viewsOperations with multiple input js
I am developing a system and in a certain part it presents the following structure, image below Also follows the code What I want to do is when the user type in the "Arms" field and in the "Weight"…
-
1
votes1
answer89
viewsReplace background-image of :after
I have a div with a pseudo-class :after where I create a square and place inside a figurine of an arrow down. I’m trying, with the code below, by clicking on this div replace the figurine with a…
-
1
votes1
answer129
viewsjQuery error not visible when migrating code
Well, I have on the following page http://www.hotplateprensas.com.br/estilos/aa2.php The functional script When I migrate to the end of the page: http://www.hotplateprensas.com.br/estilos/index.php…
-
1
votes1
answer40
viewsHow to upload images and display them using jquery?
How do I upload images and display them within a div, and when the user uploads them again these images are replaced. Ex: the user uploads images img1.jpg, img2.jpg if he uploads new images…
-
1
votes2
answers1380
viewsHow to find the nearest number with JAVASCRIPT
I have a input which receives a user-typed value and an array of 12 values.. I am traversing the array with a Foreach.. because I need to find the approximate value of the value entered in input.. I…
-
1
votes2
answers105
viewsDynamic height in 'product cart'
I have a div which serves as a shopping cart, it is fixed at the top of the screen where only the subtotal of all products chosen and by clicking on the div, she makes a slide down effect and shows…
-
1
votes1
answer442
viewsHow to select multiple radios button in the same column of an html table?
I have a table html with 3 columns and 3 rows and when I select, for example radio button of line number 2 the line number 1 unchecks. @if (Model != null && Model.Tabela1!= null &&…
-
1
votes1
answer50
viewsGive Hide or show by clicking another element
I have 4 topics, and I would like to display only what I clicked, and if another one is open close, I know how to do this with jquery, but I’m doing it in a way that I don’t think is the most…