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
votes0
answers87
viewsDatepicker update dates according to return of an ajax
I want to display a calendar with only some dates enabled, I make an ajax request that returns me an array with the dates I want to enable, the function I have today is similar to this example here…
-
0
votes1
answer87
viewsspecified class but jQuery jumps element
I have this HTML <div class="slider"> <div class="slide ativa"> <img class="fade" src="http://funerariasaopedro.net.br/novo/_img/_banner/_site/bg_1.jpg" /> <span>Este é…
jqueryasked 6 years, 11 months ago Carlos Rocha 1 -
0
votes1
answer37
viewsError calling variable outside function
I have the following code: var rtn = null; gapi.client.drive.files.list({ q: "mimeType = 'application/vnd.google-apps.folder'", }).then(function(response) { var files = response.result.files; rtn =…
-
0
votes1
answer72
viewsProblem passing some Json messages to Jquery
Guys, I have a form that is passed to my PHP via Ajax in Jquery and returns the result via Json to my console. Follow a snippet of code in PHP. if($tabela == 'setup') { if(isset($_POST['nome'])){…
-
0
votes1
answer90
viewsSet time (minute:second) on Flot chart
I’m trying to put on the x-axis the seconds, because the update is every 3 seconds. I have found that to define the interval, I just put this data xaxis : { minTickSize : [ 3, "second" ], min : 0,…
-
0
votes1
answer26
viewsButtons when they arrive at the first and last sliders show blank
I have the following slide below: $(document).ready(function(e) { const blocos = $("div.slider div.slide div"); function startslider() { ativa = $(".ativa") if (!$(ativa).next("div.slide").length) {…
jqueryasked 6 years, 11 months ago Carlos Rocha 1 -
0
votes0
answers74
viewsFunction Focus Jquery not working mobile
I have the following function in my code .js: element = $('.bloco-pesquisa').find('#inp-pesquisa'); element.focus(function(){ alert("focus!"); if (!load_autocomplete){…
-
0
votes0
answers36
viewsFirst Field is null in Each JQUERY
The first fields are appearing null when I step into the controller follows the code HTML <div id="divItensServicos" class="price-box collapse"> <h3>Itens de Serviços</h3> <div…
-
0
votes1
answer278
viewsAJAX request with different domain
my request url="http://algumip:algumaporta/dowPDFNF?cChave="+chave $.ajax({ url: url, dataType: 'jsonp', success: function (data) { console.log(JSON.stringify(data)); }, type: 'POST' }); error that…
-
0
votes1
answer99
viewsSend information without finalizing the form (Submit)
I have a form in html and I need to fill the fields and click on the "Next" button to send the form by email without the person noticing, because the form continues in the next steps... <div…
-
0
votes1
answer24
viewsReplace no `contenteditable` does not play the end pro pointer
I’m trying to replace contenteditable, it replaces but does not play the pointer pro end, always keeps at the beginning. I did not know contenteditable yet and did not find anything 'simple' that…
-
0
votes2
answers2686
viewsModify attribute href via jQuery
I need to know how I change the links and images of a page via jQuery. I have to make dynamic updates on a certain page and I need to create a script for this, that changes images and links.…
jqueryasked 6 years, 11 months ago Thiago Diogenes 1 -
0
votes1
answer666
viewsConsume API with Jquery and save to database
Good night! I am trying to consume an API using Jquery and Laravel. I created the route to access and save the data, access always returns me with status 0. web php.:…
-
0
votes1
answer167
viewsRegister incoming api data with php
I’m having trouble saving data received by an api in the database with php, always returns me the error: Error when trying to register record! I already checked the data being entered with…
-
0
votes1
answer134
viewsHow to capture the value of a JSON key (from an AJAX) using Jquery?
I have the following AJAX: $("button[name='btn-editar-marca']").on('click', function(){ $.ajax({ type: "GET", url: "../ajax/ajax.marcas.php", data: {"ajax-params": 2, "Id_Marca":…
-
0
votes1
answer229
viewsAdding effects to text in Owl Carousel using Animate css
I’ve been trying to add animations from the library Animate.css at the Owl Carousel, to make the sliders more beautiful and elegant, however I can’t, only work the first slider once you load the…
-
0
votes1
answer404
viewsJquery button with click counter
Good morning. I have in my html a dynamic table with some data coming from sql, among them a field "available quantity" and a button that at each click, make a request ajax and decrease the amount…
-
0
votes1
answer242
viewsProblems using getJSON to load Json from php page
The intection is to take the result of a select, assign in an array, and place its value in an html element. the value is listed and assigned to the array, however, I cannot insert it into my html…
-
0
votes2
answers441
viewsHow to create an Operation Confirmation Alert?
I have the following Function which is called through a OnClick where will delete the record selects. But for security reasons, I would like to put a control to continue the operation or not.…
jqueryasked 6 years, 11 months ago Igor Carreiro 1,917 -
0
votes0
answers108
viewsSubmit Ajax query on another page
Good morning. I’m making a shared racing web app, like "Uber". I want you to submit a query to the database with the list of registered drivers searching for Cpf, but I want you to show in this…
-
0
votes1
answer62
viewsJquery notification appear only 1 time
How do I, according to the code below, the notification appears only once at each access? <script src="assets/plugins/notification/js/bootstrap-growl.min.js"></script> <script>…
jqueryasked 6 years, 11 months ago user24136 -
0
votes2
answers127
viewsCombine alternative array with query array php/jquery
My doubt is the following: I have this code jquery where I capture all the questions of a proof and just below the alternatives of it; but I can’t relate the alternatives to the questions, someone…
-
0
votes1
answer155
viewsLimit tags in bootstrap-tagsinput v0.8.0
I need to create a field where you can put a certain number of tags in a form input. I’m using the plugin bootstrap-tagsinput v0.8.0 jquery, I managed to make it work, but it does not limit the…
jqueryasked 6 years, 11 months ago Wagner Martins Bodyboard 698 -
0
votes0
answers191
viewsPage loading error when exporting a PDF file using html2canvas and jsPdf
Good afternoon I am developing a system that creates one or more HTML templates and exports them to PDF for creating posters. It takes the html area for each poster, converts it to image with…
-
0
votes1
answer740
viewsHow to capture the return of an AJAX that is inside a function?
I have a screen where lists the Marks registered in the system, as soon as the user opens this screen, the list of brands should happen. I already have AJAX done and it was working, but I wanted to…
-
0
votes0
answers26
views -
0
votes1
answer86
viewsIsolate and update only one Div
It is possible to 'isolate' a Div and update only her ? Example: I have the option to change the profile photo on the user, where as soon as it is changed from the one Reload on the page in order to…
-
0
votes2
answers34
viewsanswer in`json` received from a file `php`
I have the following answer in jSon received from a file php. {"1":"OK","2":"n"} I want it now, in jQuery catch the values of indexes 1 and 2 which are respectively "OK" and "n". How to do this? My…
-
0
votes2
answers586
viewsChecking multiple <select> of same "name" if it is empty with Jquery
I tried several ways but was unsuccessful in creating a window.Alert(); with Return false; if no select field of name="producto_qtd[]" is selected or if it does not exist, but unsuccessfully, I…
-
0
votes0
answers25
viewsButton does not appear in all songs
Good staff Here’s the thing, I’m doing javascript buttons to add music to favorites, but the extra button I added and style with css doesn’t appear on all songs, just a few. And another thing, each…
-
0
votes0
answers251
viewsCreate Bootstrap Paging Links using Ajax
$.ajax({ type: "POST", url: "php/crud.php", dataType: "json", data: {qtd_registros: 3, pagina: 1}, success:function(dados){ var paginacao = '<nav><ul class="pagination…
-
0
votes1
answer42
viewsShorten address of a group of elements with jQuery
I got the following code: $("div.conteudo div.administrador form.administradorEdita") Which is a form I want to refer to a label his; var form = $("div.conteudo div.administrador…
jqueryasked 6 years, 11 months ago Carlos Rocha 1 -
0
votes1
answer29
viewsHow to remove class from a dynamically created field?
I’m trying to remove a class from a label dynamically created by handlebars, But I can’t find the label with his id; On the console if you pass the idLabel it returns the right id.…
-
0
votes1
answer638
viewsTake JS Variable value and pass to PHP and send by URL
I have the following code below. I want to know if there is a way to send through the URL a variable that was passed from JS to PHP. The purpose of the code is to pass the variable after clicking…
-
0
votes1
answer146
viewsSomeone would have a solution to turn "checkbox" into "radio"
I have a Jquery code along with Js, because I intend to turn checkbox into radio, this code works with radios, with just one click on the same location it unchecks the radio if it is marked, and if…
-
0
votes1
answer195
viewsHow to make a datatables data be clicked by calling another view?
Good afternoon guys. Follow the code of my view, which is working fine. It turns out that I would like to do the number of the process (2º <td>), be clickable by calling another view. It is…
-
0
votes0
answers56
viewsSend javascript FILE to php
I’ve been reading a lot about it and I’m getting more confused. I have the form below: <div class="plano"> <h1 class="titulos">Cadastro de Plano</h1> <form method="post"…
-
0
votes1
answer248
viewsUpload with jQuery
I have this code: $(document).ready(function(e) { $("form").on("submit", function() { $.post ("upload.php", { fotos : $("input[type=file]") }, function(retorno){ alert(retorno) } ); return false;…
-
0
votes1
answer33
viewsInline vuejs edition
When you click on the note column all inputs will appear. I wanted each input to appear when clicked on the corresponding row. new Vue({ el: '#app', data: { nota:'nota', edit: '', myclass: 'before',…
-
0
votes1
answer524
viewsValidate textarea field with summernote and php
We’re using summernote in a project with Bootstrap. It’s like this: HTML is that way: <textarea class="md-form-control md-static" id="summernote" name="Mensagem" rows="18" ></textarea>…
-
0
votes2
answers299
viewsTips for plan page and how to fix error: Uncaught Typeerror: Cannot read Property 'scrollHeight' of Undefined
Good morning, everyone! I’m trying to make a page of plans: https://codepen.io/jkarlos96/pen/KRjrKV I’m just having trouble with the scroll effect. You can see that only with club plans it works and…
-
0
votes0
answers139
viewsFetch and Json Problem in Jquery Javascript
I’m having a problem with Javascript Fetch let url = "https://www.teste.com.br/ws" fetch(url,{ mode: 'no-cors', method: 'GET', headers: {'Accept': 'application/json','Content-Type':…
-
0
votes1
answer24
viewsPerforms the operation but displays error at the end
I’ve got the code below that’s really pissing me off. It’s not possible people! // JavaScript Document// JavaScript Document $(document).ready(function(e) { $("a.excluiFalecimento").click(function()…
-
0
votes0
answers62
viewsHow do I update the result of a PHP page to each data stream?
I am a beginner in the subject, but I will try to explain in the best way what I intend to do. I would like to update my web page, every time there is a new database Insert. Below I will post my…
-
0
votes1
answer79
viewsProblems with Iframe and js
I have the following code below that shows a regressive chronometer on my page, the idea is that when zeroing it shows an iframe(video), even shows but the video is flashing as if only it was in…
-
0
votes2
answers82
viewsFCKEDITOR - Force all left text
How to force a text if inserted in the FCKEDITOR: Na frase: para discutir e levantar sugestões que possam trazer a solução definitiva. a)A sustentabilidade, que hoje tem caráter extremamente…
-
0
votes1
answer3597
viewsHow to add the "active" class according to the page accessed
I have a separate layout in my project, where it is standard for all pages. how to do, in the left menu, the active class is activated according to the selected page. I have the html code: <div…
-
0
votes1
answer60
viewsError removing div with Jquery
I need each time you click on "add product" to duplicate the div .new product. And when click 'remove product' remove the created div. Until then it works, but when you try to add a product again…
jqueryasked 6 years, 10 months ago Lucas Granvilla 444 -
0
votes0
answers27
viewsTake value from only one variable
I’m having a little problem with my sales system. The system works as follows, when I press the button +, It adds the product to the cart, so far all right, however, it is taking the code of all the…
-
0
votes1
answer58
viewsjquery.ez-plus resize zoom frame
I have the following code <div class='fotosPlanos'> <img class='elevate-image' src='_img/_fotos/corsa.jpg' data-zoom-image='_img/_fotos/corsa.jpg' /> </div> <script>…
jqueryasked 6 years, 10 months ago Carlos Rocha 1