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
answer25
viewsJquery/Javascript Display one of two items randomly on each access
Good morning friends! All right? My case is this: I have two cell phone numbers, and I want each access, I display a different number. I tried to do something with Math.Run between 2 and 1, with a…
-
0
votes1
answer354
viewsModal does not rise when called by jquery
After a few mistakes, I managed to make jquery work. Now I need to call Modal from inside jquery in the change of a Dropdownlist. Below my jquery. $(document).ready(function() {…
-
0
votes1
answer134
viewsButton click event is only held once in jQuery
So I have a button that is generated dynamically via AJAX. I made an event in jQuery that when clicking the button, it runs one of the conditions that are inside the event (in IF and Else If).…
-
0
votes1
answer56
viewsLoss of information when ordering a datatable inside a Modal with AJAX
Good Afternoon. I have an action list that opens a modal and displays a series of pagination information within a datatable, and I want to give the user the option to sort this information, but when…
-
0
votes0
answers58
viewsInput Images with Dropzone in AJAX request
I have a problem with my code referring to trying to perform an image input via AJAX. The PHP script is ok, because the same code is used in other operations, but I believe there is something wrong…
-
0
votes0
answers183
viewsC# MVC 5 - Ajax - Run Two Actions
Good morning. I would like to run two Action, one that displays the result on the screen and the other that generates an excel file. The View that displays the results at its top has the search…
-
0
votes1
answer73
viewsValidate Captcha in PHP by Jquery
How can I make so that the user enters the wrong captcha, the validation occurs without giving the post? I have the following code: <?php session_start(); ?> .... <div…
jqueryasked 6 years ago user24136 -
0
votes1
answer153
viewsModal flashing on mouseleave and mouseenter
I have to do an action when I hover the mouse over the image it appears in a modal (bootstrap) with the image in a larger size. The problem is that it keeps blinking non-stop, giving Hide and show…
-
0
votes1
answer271
viewsHow to close a select by clicking outside it?
I am building a custom select with autocomplete and for this I am using some <div>'s, one <input> and jQuery. I wish it had the same default behavior as a select HTML when you click…
-
0
votes1
answer141
viewsQuestions about dynamic system update of Dashboard
I am creating a task management system and I have a Dashboard that displays the activity updates. The problem is that I can only update this Dashboard when I refresh the page because I am displaying…
-
0
votes1
answer136
viewsHow to use Jquery autocomplete with C# ASP.Net?
Guys, I’m trying to use Jquery autocomplete in C# from a method that brings me a list of database clients (the database is the Northwind provided by Microsoft), but I’m getting an error that I can’t…
-
0
votes0
answers52
viewsFilter records from a table through any data entry field
Good morning, what I am trying to do is the following, I have two fields with inputs, 1 for Seller and another for Customer. Below these fields I have my table that loads the data that comes from…
-
0
votes0
answers41
viewsI cannot recover the value of the updated date attribute
I have an attribute date equal to 1, I update that it turns 2 however when returning it continues bringing 1. The code that makes the update would be this : $('[data-linha='+ cod_sacado + ']…
-
0
votes1
answer39
viewsRunning a function after selecting an item in the duallistbox double check box
I’m using a double check box, bootstrap4-duallistbox where the user will move to the right which fruits he wishes. My intention is to perform a function after the user selects a fruit, to display…
-
0
votes1
answer266
viewsClone inputs by changing the id of each cloned item
My code is not working, I need to clone All items that are inside the origin div and change the id of each item. I’ve tried several ways but I haven’t been able to solve the problem. Would anyone…
-
0
votes1
answer41
viewsCalculation of two BD fields in a function
Good Afternoon, to calculate the budget of my works I use a query in my controller ode makes the sum of the fields , being few records there is no problem but if there are 500, 1000 records this…
-
0
votes1
answer484
viewsHow to insert error message in Input?
I created a js to display the results as the search and the code works perfectly, as example below. $(document).ready(function(){ $("#myInput").on("keyup", function() { var value =…
-
0
votes1
answer22
viewsWhen hovering over the images, the text of the "name" property should be displayed, as in the first image, with the title Twitter
const express = require('express') const cors = require('cors') const app = express() const circles = [ { id: 1, name: 'Twitter', image: 'img/twitter.jpg', color: '#aa2b31', size: 3 }, { id: 2,…
-
0
votes1
answer94
viewsSave data attribute data to an Hidden input
I have a form and would like to take the values of the 'data-aliquot' attributes and put inside an invisible input. I don’t know how I can do it. <form> <input type="text" id="cidade"…
-
0
votes1
answer275
viewsHow to soften the anchor effect?
How to apply Smooth effect on the anchor scroll of the page? Can anyone help me? $(document).ready(function() { //Função que mostra o conteúdo de acordo com o botão clicado (menu) $("#menu li…
-
0
votes1
answer99
viewsProblem with comparing two cards in a memory game - JS/Jquery
Hello, this is an exercise for college and I’m not able to think of a solution to compare when two cards are equal, which would be done in the function isMatchPattern(). Could someone suggest a…
-
0
votes0
answers17
viewsMenu accompanies content on screen scrolling
In OLX has a menu on the left side that after certain scrolling the same accompanies the content: https://pr.olx.com.br/roupas-e-calcados/calcas?cond=1 The current HTML developed with…
-
0
votes1
answer492
viewsExport HTML table to dynamic Excel with the user
I have a table in html where the user will put the values, after informing the values in this table, I must export as excel. Currently the code is exporting only the values "th", I can not identify…
-
0
votes1
answer36
viewsCheck that all items have the same value
Hello, how to check if all items "estoqueLevel" has the same value ("0" in the case). $.each(JSON.parse(response), function (i, modosEntrega) { for (var i in modosEntrega) { var foraEstoque =…
-
0
votes2
answers46
viewsFooter is repeating when I press Partialview in the dropdown change
I changed the question to make it clearer, it was dirty and now I understand the problem better. When I open the list, I have a Details button. When I click on this button, I open the details screen…
-
0
votes1
answer257
viewsUpdate Fullcalendar on onChange from a select
I have a select html in my page header that lists some people in the database, when one of them is chosen, I take his ID and store it in a JS variable and send this variable by AJAX to my php, where…
-
0
votes1
answer154
viewsPrimeng - Search multiple fields in Picklist
I’m using Picklist on an Angular 7 app. In Picklist, I need to search more than one field displayed in the container. On their website (Primeng) there is an example: Picklisttutorial On the tag,…
-
0
votes0
answers60
viewsRedirect to another page
I have a Dropzone.js and after dragging and dropping a file in my html I would like to receive a redirect to another page, I would like to know how to proceed, I tried some ways and could not, if…
-
0
votes2
answers133
viewsHow to move the cursor to the end of content with span of a contenteditable element after Focus
I am making an input text using contenteditable, what I need is a Javascript button that when you click Focus in this field, I even managed, but after that I need to put the cursor at the end of the…
-
0
votes1
answer394
viewsPopulate input’s with Ajax database data
I need you to fill out the input CPF/CNPJ Bring me the customer’s zip code and city that is automatically registered in the bank after losing the focus of the CPF/CNPJ input. The consultation at the…
-
0
votes0
answers50
viewsSlotmachine Jquery Dynamic
I have the following Slotmachine: Use the API <div> <div id="casino1" class="slotMachine" style="margin-left: -65px;"> <div class="slot slot1"></div> <div class="slot…
-
0
votes0
answers95
viewsModal Help View Product Details Jquery
I have a page that selects products in the ring case, and I would like that when clicked on see details select that product, but only appear to me the first always, with the same id. below the Code:…
-
0
votes1
answer45
viewsIf the select option is selected, then another option is added?
I have this code here: https://jsfiddle.net/pedroguilherme/ka80cruz/2/ js var cidades = [ 'São Paulo', 'Rio de Janeiro', 'Bahia']; cidades.forEach(function(item){…
-
0
votes1
answer92
viewsMake ul move using script only
Hello! I saw an example of carousel that use the feature of margin to simulate the movement of items. How can I just with the script, do something similar, considering that the code repeats the…
-
0
votes1
answer1001
viewsUncaught Referenceerror problem: answer is not defined
To with a problem, in sending data using ajax, my function always returns that same error: Uncaught Referenceerror: reply is not defined; Function that passes the data:: function…
-
0
votes3
answers127
viewsCloning elements with Javascript
I am facing problems to clone elements with javascript. The problem: As shown below, the form contains a checkbox that when clicking executes a function that changes the input value Qtd Min. By…
-
0
votes1
answer12
viewsUsing draggable error when calculating the percentage
I’m using draggable from Jquery UI to do a drag effect (drag), the difficulty is in calculating, from 0 to 100, the drag position within the bar. Look what I’ve done: $('.drag').draggable({ axis:…
-
0
votes0
answers173
viewsjQuery $ is not a function/is not set
Good morning, you guys. I’ve been trying to solve this for some time but without success. It seems that jQuery is not being loaded or assigned in $, jQuery. Below are some snippets of code to…
-
0
votes1
answer100
viewsChange span text by clicking
I created this function so that when it was clicked, show posts' tags. It works normally but I would like to change the text "open tags" to "Hide tags" when it was clicked, how do I do this?…
-
0
votes2
answers116
viewsSelect options does not work using jquery
With this select <label>Quantos módulos fiscais a sua propriedada tem:</label> <select id="fiscalModule"> <option value="minifundio">até 1 módulo fiscal</option>…
-
0
votes0
answers17
viewsProblems with mobile menu
People I have a problem in the side menu I created in the mobile version of my website needed that when the person opened the menu and clicked out it would close as shown in the image below, in case…
-
0
votes1
answer44
viewsCalculate, Javascrips, Jquery
I have a script, which is calculating, only that it brings me an integer, ie, if I calculate the values: 15,20 + 2,36 + 20,36 it will calculate only the integers, will bring me the result without…
-
0
votes2
answers84
viewsMake field validation identify the user has purposely pressed the space bar
I have the following form: <form name="form" method="post" id="contact-form"> <div class="control-group"> <div class="controls"> <label for="nome" style="font-weight:…
jqueryasked 5 years, 11 months ago user24136 -
0
votes1
answer150
viewsDrag 'n drop from div with Collapse and position Fixed
Good morning, I want to use the Jquery-Ui Draggable to accomplish the drag 'n drop from a side panel. The problem is that this panel is overlaid the page with a position: fixed and when dragging the…
-
0
votes1
answer50
viewsPick up and save a Class by specifying only the beginning of it
Hey, how you doing? I would like to store in a variable, among several classes of this example, the class that begins with SHOWCASE. I don’t want to store html. I want to store the class name! <a…
-
0
votes0
answers45
viewsHow to get the updated "d" attribute from a staggered SVG path
Well, I have the following code by which I take the contents of the "d" attribute of a <path> SVG, however, need updated coordinates after using scale to increase the size of the drawing,…
-
0
votes2
answers203
viewsHow to remove button with one click using jQuery
I have the following button on the page: <div class="col-xs-12 col-sm-2" > <div class=""> <a class="btn btn-info btn-sm btn-raised marginRight10" id="adicionar"…
-
0
votes1
answer353
viewsHelp to animate Back to top button. Javascript or Jquery
Good afternoon, I need to "animate" a Scroll to top button. It’s already perfectly formatted in CSS, and it works (back to top), what I really need is for it not to appear when the page loads, but…
-
0
votes0
answers335
viewsHow to use WYSIHTML5 translation?
The documentation says the following: You can use Bootstrap-wysihtml5 in other Languages. There are some Translations available in the src/locales directory. You can include your desired one after…
-
0
votes1
answer78
viewsinput.Select2 does not let you select the record
In the <select> the records coming from the database are listed, but when clicking on the record, it is not selected. function searchClasseDisciplina() { const input =…