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
answer286
viewsHow to check the Code status of an ajax request
I have a very simple AJAX request. But I wonder if you can read the status code returned within the method done. More or less like below: $('#form-aluno').submit(() => { let data =…
-
1
votes1
answer40
viewsProblem with AJAX Request
I’m doing a user login system. When the User makes the form Ubmit the AJAX request is not working and the page switches to login.php JS $("form").submit(function() { if ($("#login_username").value()…
-
1
votes1
answer107
viewsHow to use a single form to register a new user and change data of an existing user on the system?
Hello. I have a form and table (which lists company employees). When I click on a TR (from your respective employee) in the table, the form data is filled in with the company employee data. So, if I…
-
1
votes3
answers121
viewsAssociate input values to the nearest plan with jquery
I have an input range that goes from 0 a 400.000 every step of 5.000 and I have a set of plans (50.000, 70.000, 100.000, 120.000, 150.000, 200.000, 220.000, 250.000, 300.000, 350.000, 380.000 e…
-
1
votes1
answer531
viewsAjax requests in parallel
I’m with a system that has some things that uses long Polling, it disturbs everything, any button you click (that makes an Ajax request) will take long because it has long Polling running. Ajax by…
-
1
votes1
answer794
viewsAdding HTML to the Integrated Store Footer
Hey there, guys! All right? Recently, I started in the middle of the e-market and created my online store via Integrated Store.I’m trying to make some adjustments to the template I bought, adapting…
-
1
votes1
answer741
viewsAjax returning HTML together with Json
Hello, I am trying to fill in input data with the result of a database search using as a filter what has been typed before. ex: User enters client code and when the focus of the input, all the…
-
1
votes1
answer34
viewsAdjust div to display the center of the image on smaller screens without changing the image size
I have an image like this: On smaller screens, I want it to be seen in the center, without changing the size and scale of the image Does anyone have any idea how to do that?…
-
1
votes0
answers25
viewsError in moving Intel in a Javascript array
Good Afternoon, In my code, a curious detail is happening. I have a game board and when I move my piece past the cell below any other element, this one stops. I’d like to pass it on, just giving the…
-
1
votes1
answer29
viewsScan barcode for product data
Good evening everyone, I am developing a system in JSP and in it I have a form for the user to register a product. My question is, if there is any way, when the customer scans the product’s barcode…
-
1
votes1
answer678
viewsFirst search Element inside another Element if it exists in jQuery
I’m having a problem finding an Element within Another and checking if it is first element, see the structure: <div class="form-group"> <input type="text" id="teste1"…
jqueryasked 8 years, 2 months ago iLeonardo Carvalho 561 -
1
votes3
answers500
viewsWhat’s $(this.hash) in jQuery for?
In the code below I came across the syntax $(this.hash): $('a').on('click', function(e) { e.preventDefault(); $(this.hash).show(); }); I got a little confused thinking it might be something related…
-
1
votes1
answer329
viewsWhat is the difference between the element and this in jQuery’s $.each function
During the development I am in doubt the correct use of some tools, among them is in the use in a $.each of jQuery the element and the this, take the example: $(document).ready(function() { var $app…
jqueryasked 8 years, 2 months ago iLeonardo Carvalho 561 -
1
votes1
answer194
viewsFunction to create buttons from an Object
I need to create a function similar to this: criarBotoes({ "Abrir": function(dados){ alert("Abrindo..."); console.log(dados); }, "Fechar": function(dados){ alert("Fechar..."); console.log(dados); },…
-
1
votes2
answers447
viewsReturn function Boolean via ajax
I have the following ajax call on my page: $.ajax({ url: 'EquipamentoTemControleFuncionamento', data: { contratocod: contratocod, numeroserie: numerodeserie }, type: 'POST', dataType: 'JSON',…
-
1
votes0
answers96
viewsDisplay dialog with first faces when clicking on an emptyMessage of a p:autocomplete
Well I am using Primefaces I have a field p:autocomplete to search Employees, I would like when typed a name and no results found it displayed the message "No employees found, click here to…
-
1
votes0
answers151
viewsBoostrap with different views in Chrome and Firefox
I have a dynamic list fill code that in firefox correctly displays the fields, but in Chrome is disorganized, as if boostrap is not working. Follow the code below function inserirFormulario(dados) {…
-
1
votes2
answers126
viewsForce to fill checkbox whenever you register a task
I have the following form to record tasks. I record tasks separately. Code: <div class="form-group"> <div> <label for="Indicar">Comeu Bem: </label> <label for="Notas">…
-
1
votes1
answer135
viewsUpload photos with Javascript/Ajax preview
Hello, I’m making an administrative website, in this site will have the option to upload photo, the user could upload up to 3 photos. My idea was to make kind of facebook, where you click and add…
-
1
votes2
answers373
viewsHow to add class in jQuery to a particular element?
I have a list containing "Urls" for other pages, I’m having difficulty to pick up the URL of the current page and check if the extracted pathname is in my list of Urls, if it exists I should add the…
-
1
votes1
answer227
viewsUse html attribute as javascript variable
I’m developing a PHP system that uses an extension for dynamic forms, where I can click a button to add fields (EX: A request can have multiple items, where the items are the fields added…
-
1
votes1
answer2645
viewsDoubt fixed navbar at the top with Bootstrap
When I add the class "navbar-Fixed-top" it "eats" 50px of the page, use in navbar, links, to Divs and whenever a link is clicked the first 50px are below the navbar, what I want to do is to prevent…
-
1
votes2
answers317
viewsProblems with jQuery printing function
Guys I put together a code in jQuery to make some changes to my layout by hiding some div and printing the page. It works very well, but I’m having the following problem. When I have image on my…
-
1
votes1
answer29
viewsHelp with search
I have a simple search field below, which when used returns with a link similar to:meusite.com/search?q=minhabusca. I need him to come back like…
-
1
votes1
answer393
viewsproblems with Tooltip in jQuery and css
Galera montei um sisteminha de Tooltip bem simples usando jQuery e css. They’re introducing the standard Tooltip when you mouse over it. This only happens in old IE, Safari and Chrome. Look at the…
-
1
votes0
answers33
viewsDoubt consume json with AJAX
I created this code at the test level to try to consume a "json" via AJAX. I’d like you to tell me where I’m going wrong I’m getting this mistake: json.html:1 Xmlhttprequest cannot load…
-
1
votes1
answer425
viewsProblem when displaying modal bootstrap
I am trying to display a modal of bootstrap to the client, with an error message, my code is as follows: @if (!string.IsNullOrWhiteSpace(Model.ErrorMessage)) { <script>…
-
1
votes0
answers202
viewsValidation Issues with jQuery Mask
I have this in my javascript file but I don’t know why it’s not working in my fields. $(document).ready(function () { $("#number").mask('00000'); $("#open-hour").mask('00:00');…
jqueryasked 8 years, 2 months ago Ana Carolina Ribeiro 451 -
1
votes1
answer507
viewsWhy can’t I get the data from the ajax request? (json)
I have the following code: script js.: function maisDetalhes(id){ $.ajax({ url:'paginaDados.php', type:'GET', data:'id='+id, dataType:'json', success:function(data){ alert(data.id_event); } }); and…
-
1
votes1
answer51
viewsUnread array with index set in input
see below the following code: <input type="text" id="task" name="task[]" value="100" /> <input type="text" id="task" name="task[]" value="110" /> <input type="text" id="task"…
-
1
votes3
answers196
viewsFill in a text field with information from another field by clicking on a radio button
How I would make for the text typed in the field below: <label for="nomeUsuario">Coordenador:</label> <input type="text" class="form-control" name="NomeUsuario" id="nomeUsuario">…
-
1
votes1
answer38
viewstouchend as mouseleave not to activate onClick effects in jQuery
I have a problem regarding the click of touch whether he is still on top of the element or not (in this case the mouseleave) I modified a code already posted on the Problem capturing element…
jqueryasked 8 years, 2 months ago iLeonardo Carvalho 561 -
1
votes0
answers94
viewsI need to automatically insert the value of a cell in my last input text "Txtgesamt" after the input text "Schriftlich" keyup event
Take the cell value of a Javascript table [Help] I need to insert the node value automatically into the last input text "Gesamt" after entering any value from the first vertical column, within the…
-
1
votes1
answer807
viewsHow to change elements dynamically through Checkbox?
Guys I have a problem where I need to make a function with parameters aiming if a checkbox is marked or not. I managed to make for another field, but this was static, now I need to make for elements…
-
1
votes1
answer108
viewsHow to modify :Hidden elements with jquery?
I use Bootstrap Carousel and need to modify the margin-top of a title, but when the content div is :Hidden, I cannot get the text height with jquery. Follows the code: $(document).ready(function ()…
-
1
votes3
answers11941
viewsHow to pass data from one input to another with html and javascript?
Guys I have a big problem, I’ve researched a lot and I couldn’t solve my problem. I hope you can help me! I have a page (in html) with a form. I would like the value placed in the input of the first…
-
1
votes1
answer81
viewsJqueryui autocomplete does not refine search
Using the Jquery Ui autocomplete I have had a small problem. I am performing an ajax search to feed a text field. In this field a discipline will be sought and the autocomplete assembles the…
-
1
votes1
answer31
viewsjQuery = Focus with this
In: var form = $('body div#contato section.contato'); if ($(form).find('#nome').val()=='') { alert ('Preencha nome'); $(this).focus(); return false; }; What is the correct way to call the this? he…
jqueryasked 5 years, 3 months ago Carlos Rocha 1 -
1
votes1
answer91
viewsHow do I make a button submit a form and play a sound
I’m making a web application that when the person clicks the button submit the form and automatically is playing a warning sound, but I’m not able to reproduce the sound and submit the form ,it only…
-
1
votes1
answer135
viewsCreate a POST with Jquery without form
You can create a Submit POST without FORM? I have some link: <a href="1" class"submit">Teste 1</a> <a href="2" class"submit">Teste 2</a> <a href="3" class"submit">Teste…
-
1
votes2
answers131
viewsChange link name with jQuery
I’ve done some research and I don’t know if this is possible. In case what I am wanting to do is the following: With jQuery I would like to change the link name, like this: It’s like this: <a…
-
1
votes1
answer489
viewsHow to fire a Rigger with jquery?
I’m working with radio type button and I can’t fire a Rigger. Can someone help me solve? $("input[name='estimate_method']").on('change', function() { $(this).prop("checked", true);…
-
1
votes3
answers105
viewsSum partial total lines created dynamically with jQuery
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?><!DOCTYPE html> <main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4"> <div class="d-flex…
-
1
votes1
answer66
viewsDetect jquery ondrag event
I am working with drag and drop as in the example on the jquery site: https://jqueryui.com/sortable/#connect-lists I took the same logic of the example script and applied it to an HTML page, where I…
-
1
votes0
answers81
viewsUsing two JSON files with Jquery
Good morning/afternoon/night, I’m doing a college job trying to put 2 JSON files and compare a key, for example, in the first file will have several addresses and a key relating them, this key I put…
-
1
votes2
answers152
viewsHow to put id value contained in input elsewhere on the javascript page?
I wonder how I can take a data contained in an id inside an input and put elsewhere in the page with help of javascript as follows in the example below: HTML: <!-- Dado ID --> <input…
-
1
votes1
answer517
viewsInstallments with date, skipping month of February
Good afternoon. I’m studying a little JS and I found something interesting that future I think about using. However I realized that the JS below that generates installments with due dates, skips the…
-
1
votes1
answer289
viewsEdit html+php+jquery items
I have to edit a record series, the same are listed in a table (see): This is the form of the image above: <div class="control-group"> <table class="table table-bordered "> <thead>…
-
1
votes0
answers203
viewsSelected Checkbox list only contains those on the screen
I have a GridView containing a list of items with a checkbox and make use of the code below to "paginate" the table: $(".gvdatatable").dataTable(); The problem occurs when I check which ones…
-
1
votes1
answer33
viewsBug in Jquery programming
Good night! I have a problem in the programming of an exercise, I need to remove these "spans" from the fields that are missing in the input, leaving only one that changes according to the need.…