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
answer411
viewsHelp with using JS delay or setTimeout
I’m trying to create a loop function that switches between 2 Divs. But the result is that when restarting the function, I cannot make it wait again the 5 seconds of the alternation interval,…
-
1
votes1
answer930
viewsEvent change is only triggered when changing tab or changing window
Good afternoon, everyone. I am trying to implement an autocomplete using typeahead.js. Assigns a change event to my input to make an ajax request that brings me the data that will be displayed in…
-
1
votes1
answer80
viewsOpen in certain photo, Slick Carousel
It is possible that when opening the slick carousel, given photo is in focus? some kind of index mapping or even by name, if not, there is some other slide drag and drop What does it do? example...…
-
1
votes4
answers627
views.append() an img tag?
I would like to insert a tag using append but whenever I try, it tries to insert an image in the div that I want to insert only the text, there is way to get? <input type="file" multiple…
-
1
votes2
answers830
viewsMask in html field does not work
Good afternoon, I have a page in my application to register customers , nothing out of the ordinary. On this page , I have some fields ( cif ,rg , phone,phone_2 ,etc) that when typing are formatted…
-
1
votes0
answers36
viewsWhat would be the equivalent of delegating to the JS?
When an element is created dynamically by JS and this element needs to perform a function I do so in jQuery: $(document).on('click', 'button#doLogin', function(){ }); How is it in the pure JS ?…
-
1
votes1
answer35
viewsCodemirror does not display first in a modal
Guys I am creating a standard model for reading XML and to facilitate the life of the system users, I am displaying a default model example in a modal with codemirror, however, it does not display…
-
1
votes1
answer65
viewsHide Div on IOS
I have a redirect button for Whatsapp on my site that doesn’t work on Ios, would there be any way to hide it just for that OS? In case it is inside a href in html, just hide it when the user is…
-
1
votes0
answers35
viewsGroup Subtotal datatable at the bottom
I have a datatable with subtotal. jsfiddle, but this subtotal is at the top and needs to appear at the bottom as subtotal. Doing tests I found out that it generates the TR when it goes through this…
-
1
votes2
answers458
viewsRequire input text filling with jQuery Validator
I am making a registration form, and I have three fields to enter values. I want to make it mandatory to fill in at least one of the three input text. Does anyone know how to do this with jQuery…
-
1
votes0
answers248
viewsHow do I open a pdf inside a modal? It can be in jQuery and JS
I looked in some places and could not find a solution, someone would have an idea of how to do?
-
1
votes0
answers91
views$.ajax error while reading php
I have the following file index.php which has 2 forms. One of Login and one of registration <?php header("Content-Type: text/html; charset=utf-8"); /* Carrega as classes em tempo de execucao */…
-
1
votes1
answer167
viewsChange transition and location of an action in jQuery
I recently found a code that has what I need. I’m developing a page with 3 buttons, each of them shows a content (a div) when clicked. When I click the first button, as the div is displayed right…
-
1
votes1
answer60
viewsOptions from select with Closest
How do I get all options tags (html and values) with jquery <select id="test" name"algumName"> <option value="1">1</option> <option value="2">2</option> <option…
-
1
votes1
answer165
viewsjQuery - Function . prop()
I have a input which is disabled by default, but I wanted to enable it in the page loading through jQuery, but it is not working. Code of input: <input type="text" title="Número"…
-
1
votes1
answer434
viewsHow do I click on a link and activate a JS function on another page?
want that when clicking on the link of the first page, it goes to the second page and makes the function JS, that is to show only what belongs to the sport of the link ie I want to click on the link…
-
1
votes1
answer42
viewsSum optin: how to do?
$( ".form-control" ).blur(function(){ calcular(); }); function calcular() { var soma = 0; $( ".form-control").each(function(indice, item){ var valor = parseFloat($(item).val()); console.log(valor);…
-
1
votes1
answer51
viewsFill meta Description via javascript Google interprets the code?
I have a JSON {"content":{"description":"Descrição do meu site"}} I wanted to fill the meta name Description via javascript <meta name="description" content="" /> I wonder if Google will read…
-
1
votes1
answer27033
viewsClear fields with Jquery
Colleagues. I’m trying to clear the fields after Submit from a form, but I’m not getting it. Look: $(document).ready(function() { $("#resposta").ajaxStart(function(){ $(this).html("Mensagem sendo…
jqueryasked 8 years, 10 months ago user24136 -
1
votes2
answers455
viewsDynamically Loaded Content Handling
I need to manipulate an attribute of an html tag that was dynamically loaded via ajax. I have tried several ways using jQuery but none of them worked. The code being loaded via ajax is as follows:…
-
1
votes0
answers357
viewsLogin screen equal to Gmail
I’ve been watching the login screen of Gmail has the imput field and a text that stands as a placeholder, but when the mouse stroke is called from the field, this text goes up and stands as a label,…
-
1
votes1
answer14054
viewsWeekly planner Rails 5
I need to implement a simple schedule in Rails for daily schedule presentation, I adapted the model and controller to add new schedules with date and time, but the difficulty is in presenting in…
-
1
votes1
answer348
viewsPlace soft or slow effect on anchor (window.location.href)
I have the following code: if($('#otherfilter').is(':visible')){ window.location.href='#otherfilter'; } I would like to put a certain slowness for him to accomplish this anchor.…
-
1
votes3
answers953
viewsHow to simulate the event click on a <select> when hovering over a <div>?
I have the following HTML: <div class="selectOptions"> <select name="select" id="select"> <option value="1">1</option> <option value="2">2</option> <option…
-
1
votes2
answers48
viewsPass value from one page to another’s input
i have an html page where the user type in the email and I perform the check. If that email is not in the database, it is a new user and therefore redirect to the registration page. On the…
-
1
votes1
answer161
viewsHow to use a Collapsible without an id for the target element?
I’m implementing a bbcode of spoilers for a phpbb forum, which uses Bootstrap and jQuery in theme. The code is this: <div class="panel-group"> <div class="panel panel-warning"> <div…
-
1
votes2
answers245
viewsAdd a month to jQuery
I have the following date: 2017-12-22 (22 December 2017); You would need an increment that adds up to 1 month to the current one, returning: 2018-01-22 (22 January 2018). How do I do it in jQuery?…
-
1
votes3
answers641
viewsCheck if window load is false
When I give the command: $(window).load(function(){ console.log('Site totalmente carregado!'); }); Works correctly, the message on the console only appears when the window has been fully loaded. But…
-
1
votes0
answers477
viewsManipulating Drag and Drop values sortable with Jquery
Picture scheme: Problems: Order and quantity of the boxes of first column should not be changed. I could not leave them only for the purpose of DRAG, I mean, I can’t remove a box from the second and…
-
1
votes1
answer1022
viewsPass text from a textbox via parameter in onclick
I need to pass as parameter the content that is in a textbox, in the onclick of a button. How can I do this? This is the HTML code: <div id="popup"> <table width="300" height="160">…
-
1
votes2
answers451
viewsGet which div was clicked correctly
I got some Ivs: <div class="filter__filters tamanho"></div> <div class="filter__filters preco"></div> <div class="filter__filters cor"></div> I’m trying to catch…
-
1
votes2
answers1044
viewsSimple jquey chat with html database - How to send form by pressing enter key
Well I am trying to minimize to the maximum as this very small I will post my entire code, I came across a problem the code is working perfectly, but only when I click the send button that works, I…
-
1
votes1
answer556
viewsBlock body scroll when Lightbox is open, but be able to scroll Lightbox content
Forgive me if I’m wrong, because I don’t know the exact name of the effect I’m looking for, I’ve seen such an effect on some web pages but at the moment I don’t have any link I can use as an…
-
1
votes1
answer144
viewsYii2 PHP Framework get value Radiolist
Good would like to know how to get the selected value in the Radiolist of Yii2 Framework: <div class="row"> <div class="col-sm-2"> <?= $form->field($model,…
-
1
votes1
answer522
viewsDoes anyone have any idea how to create a pagination with RESTFULL API in Laravel?
Could someone give me an example of how to do this and JQUERY build paging? Even if it’s some tutorial. I have already searched several places and all say the same thing to create a pagination in…
-
1
votes1
answer622
viewsIncrease space between words to occupy the width of the div?
I have a text that I would like to "stretch", that is, leave spacing between letters until the end of the div, is there any way to do it? A div must have height static. I can use both Jquery as CSS.…
-
1
votes1
answer429
viewsHelp in the Focus event, does not want to work
The textbox Focus Event does not work, the x value is correct, but component does not change its value, any hint, please. $(document).ready(function () {…
-
1
votes1
answer125
viewsCenter div on an image
In a project I have an image that when the mouse is on top starts an effect on a div that is on top of the image, my problem is that often the div is not centralized, because the image has a dynamic…
-
1
votes1
answer46
viewsHow do I add a month to the current date with jquery
Good afternoon, How do I add a month to the current date: Example the user types 4 in the input qtdParcela: var _data = new Date(); $("#qtdeParcela").on("change", function () { var _qtde =…
-
1
votes0
answers364
viewsCounter / Reset
The code below has a play with bet base on which: When I win he goes back to the base bet. When he loses, he doubles the bet I would like your help to continue with the same idea, but instead of…
-
1
votes1
answer185
viewsCheck Box "Check All" does not work for all pages using datatables
Setting: I’m using Datatables to show a list of cities, and each of them has a checkbox. I also have a "Check All" in which, obviously, when marked, all cities should be marked as well.Problem: When…
-
1
votes1
answer1426
viewsHow to use Jquery in Angular 2
I have a theme in HTML,CSS,JAVASCRIPT and were used Frameworks like Bootstrap, Jquery, etc. I intend to implement the theme in an Angular 2 project, in certain pages there are animations,…
-
1
votes1
answer60
viewsHide a div when another one shows up on the screen?
I’d like to hide one div when another appeared on the screen. The div I intend to hide has position: fixed, In other words, the scroll accompanies the page, however, the footer has a similar part to…
-
1
votes1
answer344
viewsSelect2 display optgroup value and concatenated option
I’m creating a selection field where the user can choose between multiple states, but I need to show when selected both the optgroup value and the option value, have as? Remembering that I am using…
-
1
votes1
answer2392
viewsWhy doesn’t my Owl Carousel work? What am I installing wrong?
I’m setting up my "custom" Carousel Owl and I can’t get it to work on my computer. I did everything as the documentation says, but there’s no way it works. The only thing that appears is the words…
-
1
votes0
answers38
viewsevent for display:block in picture
I have 3 imagens in a ul. One imagem for li. Therefore, 3 li's. They’re all with display:none. Except the first. With jQuery, I click on a botão with numeração and the imagens appear (display:…
-
1
votes2
answers204
viewsRecover jQuery date variables
I have the following button: <button type="button" class="btn btn-default" data-toggle="modal" data-target="#abrir-imagem" data-pasta="interno_fotos" data-imagem="139379939.jpg">Abrir…
jqueryasked 7 years, 1 month ago Sr. André Baill 6,946 -
1
votes3
answers5353
viewsPick up input value whenever changed
I have an element: <input id="quantity" name="quantity" min="1" max="3" type="number"> where I store its value in a variable: var qty = $('#quantity').val(); by default the value is 1. I wish…
-
1
votes1
answer3976
viewsError in Wordpres JQMIGRATE: Migrate is installed, version 1.4.1
This showing JQMIGRATE: Migrate is installed, version 1.4.1 error on my worpdress site only when I use the Google Chrome browser. In mozila and edge the site works normal and the scroll effect also.…
-
1
votes1
answer891
viewsHow to display the time in 24 hour format using datetimepicker?
I’m trying to display in PM format, but whenever I select in timepicker it arrow as AM. $('.datetimepicker').datetimepicker({ lang: 'pt-BR', timepicker: true, format: 'd/m/Y h:i' }); When I select…