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
answers242
viewsGet an html and store in variable
I have a simple html file and want to ghettarda it in a variable to use, I made the get so: let popup = ''; $.get( "popup.html", function( data ) { // the contents is now in the variable data…
-
1
votes1
answer1040
viewsCall ajax with Jquery every X seconds
I’m trying to make a call Ajax as soon as the page loads and one every 2 minutes. The first and the second works, but there’s no third call and so on. <script type="text/javascript"> function…
-
1
votes4
answers4237
viewsValidation for Phone type field
Personal someone would have some validation for telephone field type? Where the user cannot place dummy numbers in the field as number sequences (99999 8888 123456) or something like?…
-
1
votes2
answers18714
viewsMax length input type number html
I have an input type number <div class="form-group col-md-3"> <label class="lb">Valor total</label> <input type="number" min="0" id="idValorTotalProdutoP"…
-
1
votes1
answer3605
viewsScroll through a table and take data with javascript
I’m new with Javascript and I need to go through the lines of a table and if the checkbox is marked, take the value of a column(ID) and store in a array.
-
1
votes1
answer73
viewsDisplay div according to note
This script works as follows: if one of the 3 dropdowns have note less than 8, it will show the content of a div occult. It works as follows: first dropdown has a note <= 8 // Shows the div 2nd…
jqueryasked 8 years, 7 months ago Fabio Henrique 2,156 -
1
votes1
answer916
viewsHow to perform a function after ajax Success?
In my project, in the ajax Success, I am making an autocomplete, so I need to execute a function after selecting an option, that is, after Success. Would it be possible/How I would do it?
-
1
votes1
answer150
viewsHow to make a date filter load the data (at runtime) according to what the user is typing?
I have the screen below and as soon as the user is typing the date, the Function already loading the data. I don’t know which jQuery event to use and/or if it’s something more detailed.…
jqueryasked 6 years, 8 months ago Igor Carreiro 1,917 -
1
votes1
answer61
viewsReturn data from a PHP/JQUERY - Unexpected end of input
I have a field called usuario_email, which in turn, the user type the desired email, triggers the jquery to search in the database if this email already exists there, if it exists, returns message…
jqueryasked 8 years, 7 months ago Sr. André Baill 6,946 -
1
votes2
answers32
viewsAdd DIV removed in jQuery
I made the following condition: jQuery: $( "#selectOption" ).click(function() { var option = $( "#selectOption option:selected" ).val(); if(option!='escolha'){ if(option==2){ $( "#atendimento_a"…
jqueryasked 8 years, 7 months ago Sr. André Baill 6,946 -
1
votes1
answer48
viewsChange site color with jquery
Is there any way to change the color of the entire site with jquery? type, I have a site that its default color is purple but only a few parts, and I wanted to change these parts according to the…
jqueryasked 6 years, 8 months ago Robert Junio 49 -
1
votes2
answers209
viewsRepetitive snippets of HTML
How to assign redundant HTML blocks (or snippets) to a variable to save lines and simplify usage? Imagine multiple Ivds or TABLE CELLS that are nearly identical by 90%. How to save an HTML snippet…
-
1
votes1
answer1204
viewsHow to set time in bootstrap timepicker
Hello, how do I set up the timepicker for current time or 01:00? $('.timepicker').timepicker({ showInputs: false, defaultTime: '', minuteStep: 1, disableFocus: true, template: 'dropdown',…
-
1
votes0
answers39
viewsResult of a Submit within the DIV itself
I have a div(id=content) where I load other pages via jquery load. however I would like to know if it is possible to submit a form and have the return in the own div. $('#conteudo').on('click',…
-
1
votes1
answer462
viewsConvert mm:ss to milliseconds
I would like to convert the value mm:ss into milliseconds, could guide me on how to do this? var time = '03:51'; var mili = ?
-
1
votes1
answer41
viewsjquery test table
By clicking on line 1 on any button it returns the value just below in the article, if I click on the same line on a different button it replaces the value, if I click on line 2 it returns the value…
jqueryasked 8 years, 7 months ago pedroandre 81 -
1
votes1
answer59
viewsCreate Multiple Events using Variables to Specify Event for Function in Jquery
I need to conduct tests for events Touch and Mouse in Jquery, and focused on reducing the cost of performing and trying to simplify the code to stay visible, simple and fast to handle choices,…
jqueryasked 8 years, 7 months ago iLeonardo Carvalho 561 -
1
votes0
answers24
viewsApp with HTML, automatic form
html apps are functional? I’m trying to create one and I have a form where you define a calendar contact, a preset message and when you click the button, automatically this message will be sent to…
-
1
votes1
answer724
viewsHow do I get a single div with the same class in jquery?
How can I use the function click in jquery with classes of the same name? Type click and appear the element only in the clicked div and not in the others. I’ve tried to use…
-
1
votes0
answers56
viewsPlugin backstretch.js decreases the size of the site background
Guys, I’m having a hard time adjusting an error that this giving in Wordpress theme. The plugin backstretch resizes the background of the site leaving the image distorted, I’ve looked for several…
jqueryasked 8 years, 7 months ago Petherson Oliveira 11 -
1
votes1
answer393
viewsFill Select Automatically via If and Else with Jquery
I am in need of a help. I have a form that captures address information through the zip code. I need a Jquery function that will select a field in a select depending on the automatically filled…
-
1
votes1
answer43
viewsJquery does not execute in content loaded with the . load() function
I’m trying to load a page using the Jquery function. load(), I use a modal to display the content on the main page, the problem is that within the modal has some functions that depend on jQuery…
-
1
votes1
answer85
viewsHow to catch the Elements of a json?
I have the return of a requisicao in the following format: There in options there are the types of cards the json returned. I want to get each of the types without manually typing their name.…
-
1
votes4
answers340
viewsIs there a way to set width specified in html as the max-width of this element in css?
The problem is this: I have the following html: <div class="page-left-col"> <p> <img src="/localhost/Department%20Pages/Communications/News/LearnStorm%20Rally.jpg" style="display:…
-
1
votes2
answers67
viewsproblem with form with tabs
I took a code on the internet that configures tabs, everything works well, except that when I change tab and return to previous, the data filled in the form have been deleted and the masks of the…
-
1
votes1
answer407
viewsJquery animation in toggle style
By clicking a button one div appears with the effect going up to the top, with Jquery. I need that when clicking again it goes away with the opposite animation - going down. As I know little about…
-
1
votes1
answer201
viewsHow to run onChange in "masked" checkbox
In a template, the following structure is automatically generated and $(".checkbox-newsletter").change(function() { alert('oi'); }); <script…
jqueryasked 8 years, 6 months ago Marcelo de Andrade 7,261 -
1
votes1
answer97
viewsHow to receive the value of <select> in PHP when selecting an option
How do I, so that when the user selects an option, the PHP variable $idCourse receive the value of the selected option. I made this code just to show the idea: Code <select name="valor"…
-
1
votes1
answer217
viewsJquery Bootstrap closed.bs.Alert
I am unable to execute the event code "closed.bs.Alert". That is, execute a code after the total removal of a code snippet triggered when clicking the Close button of Alert in Bootstrap. HTML:…
-
1
votes0
answers26
viewsComo disability via Javascript que os cookies carregauem dados em apenas uma página especificas
I have a registration page that has email and password, when the user clicks to save email and password in the login, the auto fill of the coockies already fill the registration data. I can’t clean…
-
1
votes3
answers2577
viewsjQuery, block multiple clicks on link
I am trying to block multiple clicks. For buttons I got the solution, but for links I have not yet succeeded. Has a solution that disables the link, but does not execute the link action. I tried to…
-
1
votes1
answer702
viewsJQUERY - Send selected value to input value
i have following code: <script type="text/javascript"> $(function() { $("#search").keyup(function() { var pesquisa = $(this).val(); if (pesquisa != '') {…
-
1
votes3
answers1274
viewsCan you place an array in a Javascript variable and compare it to the value in the text field?
I have the code below and need to get several different values at once. One way I thought was array no longer works. After Ajax he brings me the result in id zpl, if the result comes empty it…
-
1
votes1
answer711
viewsClicking on "Show More" button displays only 1 more result
I made a list in which 6 elements initially appear and when you click on a button 4 more appear. The database only has 10 elements. the code is: <div class="row"> <?php…
-
1
votes1
answer17
viewsHow to identify the closing event in Magnificpopup
I need to identify where the user clicked to close the lightbox Magnificpopup, as I will perform an action on this. Option: -Close x -Escape -background that is the dark part .…
-
1
votes1
answer127
viewsExpand <div> and call other content asynchronously
I would like to know how to create an event click on <div> that upon receiving the event it expanded to a percentage of the screen. Ex: 6 <div>, blog, who we are, etc... When I click…
-
1
votes1
answer1009
viewsRegular expression for number, commas and points
I need to take a specific content of a string that is returned in javascript. I thought to take his match with regular expression to get exactly the numbers, points and commas of the monetary return…
-
1
votes0
answers139
viewsZoom does not happen correctly when loading Elevatezoom page
When I open the page with the plugin elevateZoom (plugin to zoom image by passing the mouse) it normally displays the images according to what it has to be, but the problem starts when I hover the…
-
1
votes1
answer459
viewsPrice Search / jQuery / Javascript
I want to compare the product and the city of the table. By clicking on price I get the product and the city on my panel, up to ai ok! only that I wanted to click on another product to make the…
-
1
votes2
answers537
viewsProblems with JSON on the server
Hello I’m having trouble with the JSON when I climb it to the server.. Example of one of my code they use JSON: $("input[name=people]").keyup(function(){ if($(this).val() != ''){ $.ajax({ url:…
-
1
votes1
answer383
viewsRequest problem - Phonegap + Ajax
was doing a test to test the phonegap, but I’m not able to make an Ajax request in the app, but the request works in the browser. $( "#botaoBusca" ).click(function(){ var cep = $( "#cep" ).val();…
-
1
votes0
answers305
views -
1
votes1
answer46
viewsMake a menu really responsive
I have a menu with several Ivs in it with content, this site I am developing the client will have access to edit and delete elements you want from the site, so these items from within the menu need…
jqueryasked 8 years, 6 months ago Jean Felipe 73 -
1
votes1
answer123
viewsChange CSS in element that contains certain text
I have the code to follow, where my intent is that where in the class .breadcrumb a appear the term "biblical", this class has its style changed only where the resolution is less than 320px, but so…
-
1
votes1
answer62
viewsFixed Menu with Pure Javascript
I have a menu in jQuery that is fixed when scrolling up. Works well. Now I would like to have the same effect, only with pure javascript. Example of jquery menu :…
-
1
votes1
answer195
viewsnavbar bootstrap with error
Good afternoon people, next, I put a navbar on my project in the mobile part he dick, I click on the bars the menu appears and then disappear, alone, has anyone ever gone through it? follows link…
-
1
votes2
answers200
viewsTV style information bar (similar to <Marquee>tag)
I need to make an information bar style of the TV channels that keeps passing from right to left. I have the text that comes from the database and as it is a long text I would need it to be looped.…
-
1
votes3
answers1290
viewsmask jquery currency
In my xhtml I have 2 input value 1 and 2. The first input works perfectly the jquery mask for currency. More in the 2 input that is in a modal the coin mask is not working. coin function function…
-
1
votes1
answer377
viewssend to another page after AJAX
After the AJAX be done wanted to give the message of "success" opened a new tab. AJAX: $.post('registo-entrada.php',{ id_ficha:id_ficha, equip_ficha:equip_ficha, pw_ficha:pw_ficha,…
-
1
votes2
answers635
viewsAnchor for Bootstrap tabs
Hi, I’m doing a question and answer panel, where I use the bootstrap tabs to better organize the questions. I wanted every time the user answered a question, jumped to the next one, but I can’t do…