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
answer809
viewsError making request in Ajax
I am sending a request by ajax to my REST server and am getting back: Access to Xmlhttprequest at 'http://localhost:8081/datasnap/Rest/Tcadastros/Group/' from origin 'null' has been blocked by CORS…
-
-1
votes1
answer21
viewsIterator abnormal behavior within a JS function
I have a function to generate pagination buttons dynamically, so I have to generate a button for each page ( of the page total ), so I used a for for that reason. $('#resultadoBusca').append('<ul…
-
-1
votes1
answer222
viewsWhy is my append (jQuery) duplicating elements?
Good morning. I have the following code. // Inclui novo Container com seus elementos $(document).on('click', 'ul[class^="inpt_"] li button[name="mais"]', function () { var i = 0; $('#gado…
-
-1
votes1
answer87
viewsjQuery-Ajax query with PHP
I made a code with jQuery-Ajax. In order to consult the bank without much complication or objections, just SELECT * FROM produto. The result was right from the moment I tried to make a filter query…
-
-1
votes1
answer84
viewsSelect does not show the selected row
I have a zip code field where I make a query via javascript, so far so good, is working, in my form I have log field, number, neighborhood (city and state that are selected) I wanted to select the…
-
-1
votes1
answer47
viewsClose modals with jquery
I have a modal where the user can select a signature plan with the button <button type="button" class="button-assign" data-bind="widgetLocaleText:'subscribeButton'"></button> this opens…
-
-1
votes1
answer862
viewsReceive the value of a datepicker
I have a Picker date like this $('#datepicker2').on('change', function() { console.log('Submiting form'); console.log(this.value); $('#form1').submit(); }).trigger('change'); <script…
-
-1
votes1
answer76
viewsInsert td into tr using jquery
need to insert some TD within the TR using jquery. I’m doing it like this, but it doesn’t work $(document).ready(function() { $("table tbody .titulo").after("<td class='none'></td><td…
-
-1
votes1
answer59
viewsController in Laravel is not receiving values sent by Ajax
I’m doing a Wizard where I add one product at a time by clicking on a button and Jquery adds the values in an array, and when I click on the next button I make an ajax request sending the values of…
-
-1
votes1
answer32
viewsHow to consume the images link through Ajax?
I am trying for several hours to consume the links of the images of a web service through Ajax and I can’t, this is the web service link (https://api.tenor.com/v1/search?q=happy). The goal is to…
-
-1
votes1
answer52
viewsDate Input returning Time along with date
Example: I’d like you to return only to Data, but I don’t know what to do! My code: [Display(Name = "Data de Nascimento")] //[DataType(DataType.Date)] //[DisplayFormat(ApplyFormatInEditMode = true,…
-
-1
votes1
answer105
viewsHow to change an attribute of a select without option value?
I have a select rendered in view with recovered data in a database. In the table in question estado, have the attributes id, siglaEstado and descricaoEstado. In case I’m using the id in the value of…
-
-1
votes1
answer333
viewsCalculate subtotal and total with javascript
Hello, I would like to know how do for the quantity of items in the table row be multiplied by the unit value of the same row forming a sub-total to be totaled at the end. In my code, until then I…
-
-1
votes1
answer554
viewsLimit end date according to start date on bootstrap-datepicker
I would like to know how to limit the final date of the form using datepicker, I need that when the initial date is selected in the calendar, the final automatically limit up to 90 days. I have…
-
-1
votes1
answer24
viewsMouseover/out only on one menu item within several caught by jQuery selector
When I hover over a menu item everyone gets the mouseover/out effect. I wonder if which procedure/function to use when hovering the mouse in the menu apply the effect only on this menu item. <div…
-
-1
votes2
answers281
viewsJquery works on console, but does not work on file
I am running a test on a plugin in worpdress with form that has select , where when the user selects the option with "value:9" emits an Alert ("Working") and if it does not select the this option…
-
-1
votes1
answer333
viewsHTTP GET - Jquery - Node.js request
First of all, I wanted to say that I’m developer . net, so I’m kind of lost in what I’m doing. If I understood correctly, I downloaded Node.js and inside the Node.js prompt I gave a CD in the folder…
-
-1
votes1
answer73
viewsMake image preview by changing the background-image of the div
I am willing to allow the client to change the cover photo of his social network, but I need to make a preview for it. I can’t put an img tag on it right now 'cause it’s gonna mess up the whole…
-
-1
votes1
answer192
viewsdate in javascript wrong format for controller c# (Asp net mvc)
I’m in a strange situation. I am working with datepicker jquery, asp net mvc 5. i configured the datepicker for the format as below: $(".datepicker").datepicker({ autoclose: true, buttonImageOnly:…
-
-1
votes1
answer97
viewsJquery post with problems accessing a php class
I’m having trouble accessing a class via $.post from jquery. There is some internal error that is not shown in the console. If I instantiate the class via php, it works perfectly, just by jquery…
-
-1
votes2
answers124
viewsError while trying to display error/success messages and page continues to reload with ajax
Hello, I am developing a "soon" page, where I have the functionality of registering email. I made this feature with ajax and php, using the database mysql, and I’m facing 2 problems. When typing the…
-
-1
votes1
answer66
viewsCustom image in Javascript or jQuery
I made a code in jQuery that when loading an image (input file) I pick a photo and that photo goes to the site of input However the photo does not appear to measure, it is deformed. I do not know…
-
-1
votes1
answer53
viewsWhy does function . text() in jQuery not have the expected behavior?
I’m doing a web development for a joomla site. When I do: jQuery('.encomendas tbody').on('click', 'td.details-control', function () { $(this).toggleClass('diminuir'); if…
-
-1
votes2
answers41
viewsUncaught Referenceerror: hr_tb is not defined
I’m having problems with my Javascript. Basically, I get input values at the push of a button. I used the jquery plugin Mask to add masks, but at the time of storing the results, I change the mask…
-
-1
votes1
answer51
viewsError passing Javascritp to jQuery onScroll
How I can convert: window.onscroll = function (){ var elemento = document.querySelector("div#valores > section.valores > ul"); elemento.classList.add("animated");…
-
-1
votes1
answer159
viewsSending Ajax Information to Controller
Good morning guys, all beauty? I am making an application where my select will operate what will appear on my page. I am using Codeigniter, so the choice of select goes to a controller. I need my…
-
-1
votes1
answer519
viewsCall modal window inside php code
i have this login page below and I always want Submit to be clicked and the text inputs to be empty a modal window to be opened when the php verification code is executed as well. <!DOCTYPE…
-
-1
votes1
answer17
viewsReferenceerror: Getcamposdinamicogrid is not defined
I need a help, I can not solve a stop, when I load a web screen, I have an add button that create 3 html fields and so will add one at the bottom of the other, but it’s giving way, because I have my…
-
-1
votes1
answer47
views -
-1
votes1
answer61
viewsError Javascript Code When Using Keyup Event
I am using the keyup event to call a javascript function, and thus format the typed content within my input. However, it does not work properly as expected. The idea is: put only the first letter in…
-
-1
votes1
answer439
viewsHTML menu buttons do not work
Good evening guys, I’m making a mini website for the college’s Web Programming Test 1, but there were some problems in it. I made a responsive menu, with dropdown and Collapse for when the screen…
-
-1
votes2
answers85
viewsCheckbox alignment in select optgroup
How do I align as in the image below the checkbox and label? Here is not bobbing right, for better viewing can access: http://jsfiddle.net/8f7aLch6/ Code: $(function() { $('#chkveg').multiselect({…
-
-1
votes1
answer33
viewsCatch the children directly from ul
I need to analyze the direct children of a ul give what I’m doing clone() I’m just not getting any results. HTML <ul id="menu"> <li>Menu 1 </li> <li> Menu 2 <ul>…
-
-1
votes3
answers2203
viewsChange value of an Hidden input with jquery
Hello, I would like to change the value of the Hidden input. The input I want to change has id = Type. I want to change as soon as I click on the Type 2 link, I want to change its value to 2. How I…
-
-1
votes1
answer159
viewsBlur event with next select field
I have a form with all fields disabled except the first one. When filling the first field, if the value exists in the database all fields must be activated. I did this using the jquery Blur event.…
-
-1
votes1
answer81
viewsMy ajax request does not work when I put it on the web route, only in the api
Routes: //Rotas para clientes Route::get('/cliente','ControllerCliente@indexview'); Route::resource('/clientes','ControllerCliente'); Controller: public function store(Request $request) { //Função…
-
-1
votes3
answers51
viewsAdd values of fields in jQuery
I have the following HTML <legend>Credits</legend> <div id="credit-after"> <div class="form-group"> <div class="col-md-3"> <div class="form-group">…
jqueryasked 5 years, 6 months ago Sr. André Baill 6,946 -
-1
votes1
answer40
viewsWhy do the form data disappear when pulling the zip code?
I made a data editing screen, and the problem that is occurring is that when I put the zip code the address data appears, but the data, already filled out disappear! Can someone help me? HTML:…
-
-1
votes1
answer86
viewsGroup object in javascript by categories
I have a code with Datatable and wanted to group and add values in situations var table = $('#tabelaDadosFinanc').DataTable(); var data = table .rows() .data(); var total = 0; for (var i = 0; i <…
-
-1
votes1
answer53
viewsAjax + Codeigniter returning "error"
so I’m trying to perform a request in Ajax to save a registration but it’s not working. I’m using Codeigniter. Every time I try to send the Form ajax is returning me the error I don’t know where the…
-
-1
votes1
answer69
viewsWhen submitting form, how do I see the result referring to the options chosen?
Hey there, guys! My question is basically this. I have a form, where people put their name, phone, city, product option (property/ car). When clicking submit, I need a screen with a table of values…
-
-1
votes1
answer53
viewsFill <select> in the same file through another <select> from BD data
I have a form where it contains a option select function, powered by the BD query. and On the screen appears only the 1st option select only the second will appear option select after selecting the…
-
-1
votes1
answer104
viewsHow to get the current value of a select in a Row using the JS or Jquery click event
Inside the div 'div-documents' I add Rows dynamically to user documents (CPF, CNPJ, etc.). For the select. sel-document-type I have one two events: Click (for me to store the value of the select…
-
-1
votes2
answers187
viewsPass the value of 2 <select> using jQuery
I have a option select that when selecting an option it goes in BD and returns the value to another option select, works perfectly. index with the option select: <?php require './conexao.php';…
-
-1
votes1
answer137
viewsHow to save the data by removing the characters from Mask using Laravel 5.6?
Hi, I’m using Laravel, and I want to save the data after done a calculation. I am using the Jquery Mask plugin to facilitate user understanding. However, I have no idea how to filter Mask data to…
-
-1
votes2
answers77
viewshow to pass data in json format to a select?
Hello, I get two JSON, one from other models brands. { "data": { "JEEP": 40, "LAND ROVER": 46, "LAMBORGHINI": 42, "LIFAN": 43, "IVECO": 94, "ASIA MOTORS": 5, "AM GEN": 1, "ENVEMO": 23, "WAKE": 77,…
-
-1
votes1
answer768
viewsPlay local video with HTML and Javascript
Hello, I want to make a local player with HTML. I want to play locally, without uploading. I want to select a folder with music or video files and play randomly. Below follows my website with the…
-
-1
votes1
answer376
viewsView dialog screen to download with javascript
I have an MVC project where there’s a button that does the download of files but when clicking the button opens a new guide in the browser and the files are automatically downloaded, as in the…
-
-1
votes1
answer19
viewsDo not allow moving when there is only one bxSlider.js image
I am using bxslider and rodo perfectly the following code: <script> $(document).ready(function(){ $('.slider').bxSlider({ auto: true }); }); </script> Which results in card drive.. I…
-
-1
votes2
answers65
viewsButton appear only after you see all carousel slides
I am developing an interaction that the person can only advance when he sees all the slides of a carousel, but my code only works when the person clicks on 1 indicator of the carousel and not at…