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
votes2
answers768
viewsValidate select fields by jquery
I have a form using step Wizard as the link below: https://bootsnipp.com/snippets/j6rkb It works correctly, but I saw that the field validation only works for fields input. How could I validate also…
jqueryasked 6 years, 2 months ago user24136 -
1
votes1
answer445
viewsJquery to upload page after click button
Good morning friends, I’ve been searching for days for a "page up" function, when the user clicks a button. Only find options "add Back to Top button", but I do not want to add a button, I want the…
-
1
votes2
answers104
viewsCustom drag and drop Javascript does not work in firefox
I’m making an XML reader to which I upload a file and it reads the content, in Chrome everything is working ok, but in firefox for some reason the drag and drop is not entering in…
-
1
votes1
answer31
viewsPaste numbers without formatting
How could I do to remove points from a number formats? For example, I take and copy a value 000.000.000 and I’ll put it on mine input, it would automatically leave this formatting of it and would…
-
1
votes2
answers47
viewsvalidation of multiple selects
How I check if all selects have been selected? First I check if it is different from select, user needs to mark a different option from "select". Then I need to check that all selects are different…
-
1
votes2
answers101
viewsCalling function after fadeOut
I have a function that removes the row from a table, after removal I need it to be called to function getTotal();. But in any way that I put it does not work, because of the effect of the line, I…
-
1
votes2
answers1233
viewsPass Json object array to Controller C# . NET
I need to do a post, and so far I’m trying to do by AJAX to send an object to the Controller, but I’m having trouble receiving the object. View/html: <select name="Servers" id="servers"…
-
1
votes0
answers47
viewsMenu with href anchor, does not work when on the same page
I have a menu that is in a include and if I am at home and I click on one of the options goes right to the desired page, only when I am on the page only works the first link that is what I am the…
-
1
votes0
answers192
viewsen datepicker does not work in Adminlte 2
Hello, I’m developing a panel and I need the datepicker in Portuguese, I tried to modify the js file itself but the dates disappeared. $('#datepicker').datepicker({ autoclose: true,…
-
1
votes1
answer79
viewsclose tab using JQUERY
I am trying to click on the link Open the tab but when I click Open all would have some way when I click open only the tab corresponding to what I clicked and when I click again close again .…
-
1
votes3
answers78
viewsHow to add class to all read except the one that was clicked
I want to add a class hidden for all li, but not for the li that was clicked. How can I do this using jQuery? jQuery(".render-menu li").on('click', function() { alert();…
jqueryasked 6 years, 2 months ago user125347 -
1
votes1
answer91
viewsHow to change background-color of a button inside an Iframe with Jquery
Good afternoon guys, I’m trying to perform a function inside an iframe to change the background-color of a button that is in another Iframe, I started to do but I’ve done several tests and I can’t…
-
1
votes3
answers148
viewsexecute Jquery calculation for each corresponding div
well I’m creating a star rating system but I’m not able to get jquery to apply the correct Width for each span in the example below I have three DIVS and each of the 3 Divs within them has <span…
-
1
votes1
answer41
viewsReplacing an index with a string
I’m listing on the screen numbers of 1 à 15 and checking that the number is divisible by 3 and for 5 adding a text when true, until then it works, but, only that still displays the number below the…
-
1
votes1
answer46
viewsMessage to user by not selecting size and color with select
I need to change a script I have and I’m having some difficulty, I need to give a Alert for the user if he tries to go to the cart without selecting the option of Tamanho and Cor, the event even…
-
1
votes1
answer1837
viewsValidate dates with Jquery validate for dd/mm/yyyy
I want to validate the dates with Jquery Validate, but error, I researched a lot more the solutions found did not solve my problem. my JS: // incluir todos elementos do form na pagina…
-
1
votes1
answer43
viewsremove class after 1 with Jquery
I have the following situation where I want to add a class and remove the rest from the 1 <div class="voted rating-box color "> </div> this and the html where div has 3 class when…
-
1
votes1
answer78
viewsjQuery does not display the pennies in a price list
I am in need of help with the following question: In an HTML price list, I want to create a function using jQuery/Javascript so that as soon as the page loads, we select the HTML object, transform…
-
1
votes1
answer258
viewsIn jquery write a different link in a href
I have this HTML snippet that is called on some screens when necessary (clicking it opens an iframe inside the HTML): <a href="#" class="tour-360" id="tour-360-{{unit.hash}}" data-toggle="modal"…
-
1
votes1
answer616
viewsInsert Component after rendering Vue.js
Hi, I’m learning how to use Vue.js and so far I’m learning how to create Components. However I am as a difficulty, I want to render a component after loading the page. I in my project will call…
-
1
votes2
answers90
viewsOnmousemove event with jquery
I’m trying to recreate this tooltip http://jsfiddle.net/HJf8q/ with jQuery. $(document).ready(function(){ $(".tooltip").mousemove(function(event) { $(".text").style.top = (event.pageY + 20) + "px";…
-
1
votes0
answers18
viewsLopping each() running without sync - jQuery
I am creating a site like Pinterest and the commands below picks up the answer (reply = post in html format) of the call itself ajax and apende the post on the screen. The commands below check which…
jqueryasked 6 years, 1 month ago Jose Henrique 337 -
1
votes1
answer488
viewsRequests POST AJAX ASP net MVC
Good afternoon, I’m with a small doubt, I’m making a POST request with AJAX on ASP net MVC and it works normal, but in firefox I get an error on the console However, this error does not appear on…
-
1
votes1
answer45
viewsPHP - function in Wordpress plugin itself causing error 500
I developed a plugin for inserting shortcodes in Wordpress. It was my first, for personal use, has been working for years. But a few weeks ago, it started to cause error 500 (POST…
-
1
votes0
answers66
viewsZoom with carousel magnifying glass with Light-Zoom
I used a script to give a zoom effect with magnifying glass on my page, but it works only with an image, when there is more than one the effect is not applied, I do not know very well how to…
jqueryasked 6 years, 1 month ago adventistapr 5,498 -
1
votes2
answers294
viewsStopwatch using Javascript
I have the following code, the timer works, but when it comes to the end it shows END and restarts. I wanted it to stop in the message END. var tempo = new Number(); // Tempo em segundos tempo = 10;…
-
1
votes1
answer28
viewsDiscover executed event
I made the following command to display a loading every time I perform a project Submit. $("button[data-noPreload!='true'][type='submit']").click(openPreloading); function openPreloading() {…
-
1
votes1
answer591
viewsHorizontal sliding menu
I’m setting up an E-commerce where the main menu contains all the main product categories. When Admin registers many categories the menu is broken into two lines. The customer asked you to keep all…
-
1
votes1
answer38
viewsCheckbox field is not recognized marked
I have these two fields checkbox <label class="control-label col-md-3" style="text-align:left;">Tipo de Pedido</label> <div class="col-sm-3" style="text-align:left;"> <input…
-
1
votes2
answers264
viewsHow to print the selected name in the Bootstrap confirmation modal?
I have this code to confirm a form in a Bootstrap modal. How do I get the name you selected in the select of the print form in the bootstrap confimation modal? $('#submitBtn').click(function() { /*…
-
1
votes1
answer46
viewsPrevious button deactivates when clicked on next
I have two buttons that are created according to what comes from the api: <div class="col-2"> <button type="button" class="btn btn-success button-ok botOk" value="${element.NUMOS}"…
-
1
votes0
answers1186
viewsPHP - file_get_contents('php://input') is the only way to read contenttype=application/json request?
I have the following Jquery Ajax method function postRefreshJson(_action, jsonModel) { $.ajax({ url: _action, method: 'POST', beforeSend: function (xhr) { $("body").css("cursor", "progress"); },…
-
1
votes2
answers395
viewsKnow if at least one checkbox is selected within an array of the Laravel
I have an array of the Laravel that renders checkboxes: @foreach($images as $img) <div class="col-md-3"> <img src="{{url('gallery_images')}}/{{ $img->image }}" class="img-thumbnail"…
-
1
votes1
answer31
viewsCheck if dynamic table is with data
I have a table which I fill out this way below, I would like to know how I can check if you have data in it. $("#tablepesquisaprodutos").append("<tr class='item'>" + "<td>" + "<input…
-
1
votes1
answer142
viewsJquery toggle does not work
I’m using the function toggle of jQuery, is working perfectly, but I put 12 Divs with text and when I click to open only one, all are opening. Follows the code of Javascript: <script…
jqueryasked 6 years ago Thiago Maia 121 -
1
votes1
answer69
viewsHow to click link open corresponding panel
By clicking on a link at the bottom of my page I’m trying to open the corresponding panel that points to a specific page, but I’m not getting it, I saw an example here but I couldn’t adapt. The…
-
1
votes1
answer304
viewsHow to manipulate coordinates of an html page freely
How can I get the coordinates of a page HTML and from these coordinates set a target/delimite (red square) dynamically (where I only change positions) In the case of this context it would be NAY use…
-
1
votes1
answer33
viewsHow to make a function run after another? JS (Jquery)
I have the following functions: Grab server data by ajax and save to an object array: function carregaPesquisaTabela(){ controlLoading(); $.ajax({ url: "header.php", type: "POST", dataType:"json",…
-
1
votes1
answer898
viewsWhen selecting a select item, change the input field
I have the following fields: Select will contain RG and CPF. How could I do that so when selecting CPF, the field changes to what has mask? The field containing mask I already have ready, I just…
-
1
votes1
answer627
viewsGrab image address, jquery
Hello, good morning! I’d like to get the value SRC of the IMG tag, using js/jquery. In case it would be https://i.imgur.com/1gIalgU.jpg <html> <head> <title>hello</title>…
-
1
votes0
answers66
viewsHow to popular a bar graph with JSON data returned from Action to View?
I have a question about how to move my JSON content to my chart: //Aqui tenho uma requisição para a minha Action e que retorna um JSON $.ajax({ url: '@Url.Action("RetornaRankingProdutos")', method:…
-
1
votes1
answer1103
viewsDisable the possibility of the ENTER key acting on another button
Hello, everybody. I have a form in which has two Tables, inside the second table has an input text [sign 1 of the image]. This input text searches the record when pressing the ENTER key. But when I…
-
1
votes1
answer258
viewsDrag & Drop with jQuery does not place the element in the right DIV
I’m trying to exchange two images when a user clicks on one image and drags to the other. However, my code does not put the images in the correct position, it leaves the destination image in the…
-
1
votes1
answer1326
viewsHow to keep Scroll in last position after page refresh
I made some attempts, but I was unsuccessful... The priority is that it be in pure Javascript... But since I could not, I tried with jQuery also. The situation would be, each time the user increases…
-
1
votes2
answers376
viewsAdd table column with javascript and condition
I have this function which sums the fields of a column of table and works perfectly: let result = 0; let columns = $("#tablepesquisaprodutos tr td:nth-child(" + 8 + ")"); columns.each(i => {…
-
1
votes1
answer297
viewsHow to start the Materialize Chips component with predefined values?
I have a business card app, when the user registers a card has a tag field that are the key words of the card. It can also edit that card, so it can edit the tags. When he clicks edit, I put all the…
-
1
votes1
answer82
viewsStore "do not show again" with localStorage
I have a div which can be hidden by clicking a button: $(".fechar").click(function(){ $("#mensagem").hide(); }); <script…
-
1
votes1
answer19
viewsopen one modal and close the other
I have two modals, only I’m not getting one to close automatically when the other one is opened, what I’ve got so far is to do this CSS .mr{ position: fixed; top: 0px; left: -15%; background-color:…
-
1
votes1
answer311
viewsHeader with Animated Dropdown
Good morning guys, I’m developing a project and it has a header that I developed showing the available categories of it. Layout of the site with Bootstrap 3.3, already for presentation reasons I…
-
1
votes4
answers358
viewsHow to add the amount of days with jQuery
I’m trying to manipulate dates with jQuery. The idea is this: The user informs the Data_vencimento and the type (in radio button), whether the salary is weekly, fortnightly, monthly or informed. In…