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
votes3
answers67
viewsKnowing which element triggered the event
Hello, I can tell inside some_function which class triggered the event click (.Class1 or . class2)? $('.class1, .class2').click(some_function); Thank you.…
-
0
votes2
answers72
viewsFilter two values in a text type variable
I want to take these two values that are found in the following variable: let url = "https://localhost:44380/Manga/MangaPaginas/?idManga=1&idCapitulo=2"; What I want is the idManga and…
-
0
votes1
answer31
viewsDoes use of frameworks require updates?
Hello I’m using some frames like Bootstrap, jQuery and Owl Carousel and I wonder if I need to update my code whenever these frameworks update their versions. It is safe, in the sense of breaking my…
-
0
votes1
answer44
viewsIdentifying the correct fields according to Select to fill in the correct Index data
Good morning guys, I have a problem where I have done something similar in other functions of my system but this particular one is not working. I have a function that adds and removes Divs of…
-
0
votes4
answers687
viewsDisable html element with jquery
I have this code, where I would like to disable it when performing a function, and after finishing, enable it. <th href="#" style="text-align:right"><a title="Validar Pedido"…
-
0
votes1
answer34
viewsNon-Submit form after dynamically deleting a div with javascript
I’m setting up an online ordering system where the items will be added dynamically as needed by the user with a javascript function, until then everything is working, the problem is when I need to…
-
0
votes2
answers1511
viewsHow to Reset Form Select2 and Multiselect Fields
I have a registration form where I reset the fields when entering a record with the following: document.getElementById(id).reset(); //Aqui passo o id do formulário The problem is I have a field now…
-
0
votes0
answers389
viewsHow to send an image by Jquery, via $.POST?
My friends, good afternoon! I am creating a system where the person has to send an image to save in the database, but as I am making the request via Jquery, is giving the error message that I can…
-
0
votes2
answers78
viewsSend information about the link clicked to the server before redirecting
How to fire an AJAX event when the user clicks on a link? Whereas, the link will redirect him to another page. I tried to carry out the process, however, sometimes the event is not triggered(I…
-
0
votes1
answer982
viewsDynamic Combobox with Codeigniter 3
The basic idea is similar to combobox of states and cities, that when selecting a state, the next select returns the corresponding cities. In my case I cannot list these fields in the second select…
-
0
votes0
answers267
viewsUpdating Google Maps bookmarks every 10 seconds!
Friends, I made a system to record the dots in the comic book and then display them on the map. It is working normally, but as I recorded in BD via ajax, the page is not updated! I’m doing it this…
-
0
votes0
answers74
viewsProblem with checkbox with dependencies and other checkbox
Good afternoon to you all. I have a system in which I am setting the permissions in which the profile can have access on a page via checkbox for each module of the system. I have a page with form in…
-
0
votes1
answer450
viewsRecover variable within JS function
I’m logging into JS + Websql, but I’m having a hard time getting the value of the variable. What am I doing wrong? function login() { db.transaction(function (tx) { tx.executeSql('SELECT * FROM…
-
0
votes1
answer260
viewsI want to edit a pdf contract using PHP, or JS, or any web solution that serves
I am developing a management system for a company, there they have several contracts for various services. I already have the contracts in hand and already know where my system will have to change…
-
0
votes1
answer510
viewsGet name of all fields with the required tag
I want to get the name of all fields with the tag required and test one by one, if any of them are empty, enter the name in an array. This question resembles some things with this old question my,…
-
0
votes1
answer141
viewsError "content-type is not allowed by Access-Control-Allow-Headers in preflight Response." -API Climatempo
Hello, I have a problem with CORS in the Climatempo API, my request code is this: var api_url = '"http://apiadvisor.climatempo.com.br/api/v1/anl/synoptic/locale/BR?token=TOKEN"'; $.ajax({ url:…
-
0
votes1
answer41
viewsAJAX jquery request generating an array with only one field loaded
i have an array of objects - JSON: [ { "nome": "Luis", "numero": 14 }, { "nome": "Pedro", "numero": 12 }, { "nome": "Maria", "numero": 1 } ] how do I make an AJAX (jquery) request that returns only…
-
0
votes3
answers1486
viewsSend form with ajax and return errors in a div
I am using some libraries of Boostrap, as the one of the balloons of Alert, and would like to show them depending on the result AJAX, how can I send a post with AJAX and return the errors/successes…
-
0
votes2
answers61
viewsEvents do not work after fired once
I’m doing a CRUD with JS and localStorage. However, when I do an inclusion or an exclusion, when trying to click the buttons for this the events are no longer triggered. Can you explain to me why?…
-
0
votes1
answer299
viewsWhy is fetch returning a file and not the data?
I’m doing a fetch to get the data of a JSON, but the variable is getting the value of promisse and not the returned data. var data = fetch('./data/data.json') .then((response) => response.json())…
-
0
votes1
answer29
viewsJavascript onchange does not work for Combox
I have a Function in javascript that works perfectly for a textbox $('#Year').on('change', function () { alert("test"); }); However, for a combobox, it does not work $('#EntityId').on('change',…
-
0
votes3
answers850
viewsRemove field Hidden jQuery
I have the following form: <button type="button" id="remover<? echo $valor->int_cod; ?>" idProspect="<? echo $valor->int_cod; ?>" value="<? echo $valor->int_cod; ?>"…
jqueryasked 7 years, 11 months ago Sr. André Baill 6,946 -
0
votes1
answer1522
viewsClear fields with Ajax
Colleagues. I took a project that already includes the shooting of emails with PHP/Ajax, the shooting occurs normally, but the fields are not cleaned after the shooting. I tried to put form.value();…
-
0
votes1
answer263
viewsHow to use Tinymce with Jquery?
I’m trying to use Tinymce with Jquery but unsuccessfully, it sends the textarea data without formatting, if I try without Jquery it works, will Jquery not accept the html tags inserted by Tinymce?…
-
0
votes3
answers276
viewsI cannot close div using IDE jquery
I’m starting in jQuery and created a script in which when I click the div displays the content. So far so good, but when you click on text close jquery’s IDE is not working. jQuery(function(){…
-
0
votes1
answer64
viewsGet radio button value via jQuery and call a code
Good morning, I would like to receive a help, I am beginner in the area of programming. I need to know how to make whatever is selected the radio it calls a certain code. <form method="POST"…
-
0
votes1
answer190
viewsHow to select a dynamically charged dropdown with jQuery?
I am using a form to register dynamic questions in my system. I’m also recording this data in a session so I don’t have to be selecting all the time dropdows but there’s a problem: In the Submit, in…
-
0
votes1
answer164
viewsUpdate table after sumbit in modal
Good afternoon people, I was given the mission to create a form in steps (next, next, complete...) and in the last part of the form there is a table where I need to add/edit/delete items to then…
-
0
votes2
answers228
viewsAjax request problem via jQuery - PHP
I am developing a particular project and I started to develop a calendar to put in this project, however, when sending the date selected by the user or automatically when he enters the page, To be…
-
0
votes1
answer238
viewsHide form fields that will be required
Hello, I have a form that depending on what will be selected in a select will hide or display fields. The problem is that some of these fields will be of the type required and Submit will not…
-
0
votes2
answers96
viewsAssign jQuery function to variable in ternary operator
I am creating a simple forward/back function in a form with "Steps" and would like to implement a more effective solution to the situation below: $('.botao').click(function(){…
-
0
votes1
answer46
viewsAs Create a select menu, it is in the first position with the current url
As Create a select menu, it is in the first position with the current url, changing the selected of option: <select > <option value="http://www.test.com/teste1"…
-
0
votes2
answers2335
viewsHow can I make a button to load more using jquery?
Good morning guys, I’m making a site that has the posts, but I don’t want to use the paging system, I want to make a button that loads more post, then I wanted to know how I do.. <header…
-
0
votes1
answer1358
viewsForm validation with jquery
I have to do a form validation for a college job, but it’s not working and I’m not succeeding in finding the error. Grateful for the help. <script> $(document).ready( function(){ //Quando…
-
0
votes1
answer141
viewsBy clicking a button, I want my box to open with a transition
I have a box: .box1 { width: 470px; height: 64px; border-radius: 5px; box-shadow: 0 2px 30px rgba(0, 0, 0, 0.2); background: #fbfcee; position: relative; overflow: hidden; -webkit-transform:…
-
0
votes1
answer69
viewsHow to block the suggestion list of an input text?
I want to block that list of suggestions that appears when you type something in a text field, someone knows how to do it?…
-
0
votes3
answers536
viewsRetrieve from the database the "data-*value" attribute of a field through jquery
How to recover a field’s "date" attribute from the database via jquery. Today the system recovers the value(value) of the field, but now I also need to recover the date value of this field, as you…
-
0
votes1
answer85
viewsConditional If without logical comparison - I need to know what returns
Good morning guys, I’m new to JS and would like to understand one thing. When we have an IF conditional on JS without a "Comparison" how does it work ? What does it return? The code interpreter…
-
0
votes2
answers2300
viewsJquery, . val() does not take input text
I have a following code: INPUT <div class="row"> <div class="form-group"> <div class="col-sm-3"> <div class="form-group input-group"> <input id="contact-input" type="text"…
-
0
votes0
answers29
viewsRegister in database when user closes browser window
I am developing a system that needs to have recorded the time that the user was logged in to the site. When he login I register in Mysql the login time and his ID, the problem is at the time he…
-
0
votes2
answers47
viewsOpen Modal with Delay and After Closed No More
I’m trying to create a modal bootstrap as a one-page greeting screen. The part of it open with delay I managed to do without problems, but I need that when the user closes it, it will not be shown…
-
0
votes1
answer88
viewsAdding several inputs with same id jquery or Avascript
então galera tenho seguinte codico function calcularFinal() { var contas = document.querySelectorAll("#produ"); var total = 0 ; for(var i= 0; i<contas.length; i++){ var conta =…
-
0
votes1
answer820
viewsHow to Filter Table through inputs and click on a button?
I have a table with several columns and rows (populated with jquery), and I wanted to filter after clicking a button, and Filtre according to what is written in the input. How does it ? I’m still…
-
0
votes0
answers52
viewsJquery/Ajax/Json - Getting to Json
I have an array and need to get to it with jquery/ajax, the problem is that I do not know how to get to it, it is being created by php $json = Array(); then make an array push like this:…
-
0
votes1
answer31
viewsAdd class according to text by JS / Jquery
I am styling radio-button and need to add class according to the text of the button. Actually it is very simple and works with the code below, I need that instead of inserting the data-title="" be…
-
0
votes1
answer29
viewsHow to remove special character from the class obtained from a text?
I am using this code to pass the text of a label to class: $('label').each(function() { const el = $(this); el.addClass( 'pay-' + el.text() ); }); However, I need to use words with accentuation,…
-
0
votes0
answers14
viewsHow to edit an anchor text using JS?
I’m using Wordpress, and by the way this can only be done by editing html with Javascript. Follow the code: <li class="nav-item"> <a class="nav-link active" href="#craftsman_gateway"…
-
0
votes0
answers79
viewsError loading an HTML file
Good , some days I asked a question about optimization here , and I got satisfactory answers. I soon came to the conclusion , that the way I was doing my WEB system would cause performance problems…
-
0
votes0
answers39
viewsScroll function does not work - Chrome
I have a feature that refreshes my page when scrolling and works normally in Chrome, but in some it doesn’t work. var pagina = 1; $(window).on("scroll", function () { if ($(window).scrollTop() +…
-
0
votes1
answer37
viewsWidget to enter date and time
I’m using the jQuery and the jQuery UI on the front end of my web application. With jQuery UI can use widget datepicker (which can only be dated, it seems to me...), and I have used it in other…