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
votes0
answers38
viewsMessage sending with photo and display
Good morning guys, I’m having a question, I made a scrapbook system and would like to add in the post an image and display it as messages are displayed. My code is: <!DOCTYPE html>…
-
1
votes0
answers44
viewstable print js problem
Look I have a problem in this code the table does not appear in print $(function () { $('button[type="submit"]').click(function () { var pageTitle = 'Page Title', stylesheet =…
-
1
votes3
answers1489
viewsAdd jQuery hours in real time
Hi, I’m 3 input who receive hours and minutes of a timepicker : <input type="text" id="seg1" onBlur="calcular"> <input type="text" id="seg2" onBlur="calcular"> <input type="text"…
-
1
votes2
answers228
views -
1
votes3
answers2764
viewsHow to make the selected menu active with jquery?
I would like to know how to leave the selected menu active. It follows how is my html code and js, I believe it is not working because when redirects to the link of the tag < a >, it loses the…
-
1
votes0
answers28
viewsslideshow with different weather while increasing amount of images
I have the jQuery down it is working very well. Except for one detail: lógica do for is not correct: To ideia is that the tempo de transição amid one imagem and another be the same independent of…
-
1
votes2
answers196
viewsEvent add div javascript
I have a code where there is a form and the user can choose the number of lines by clicking on buttons that are in front of the input, there is a '+' button to add a new input and '-' to remove the…
-
1
votes2
answers102
viewsPosition element using another element reference
positions an element using the reference of the position of the div box, the element is on display None and when it receives the click event it appears on the screen, however it should appear below…
-
1
votes1
answer105
viewsVanish a component using jQuery when loading the page. And then appear it after a certain event in a while loop
I created a game of jokenpo and I want to put a while to ask for a value for the user. I need that when the document be charged the texbox scram. $(document).ready(function(){ var choice = null; var…
-
1
votes0
answers74
viewsInclude two while loops in a jQuery structure for the game Jokenpô
First screen - Insertion of user name Second screen - User clicks on the image corresponding to the option and then the comparison is made I want to put two loops while. The first while loop is in…
-
1
votes1
answer568
viewsFill out a form with Json data in jquery
Good night. I have a url that gets this json structure: { "kind": "books#volumes", "totalItems": 1, "items": [ { "kind": "books#volume", "id": "AKs0vgAACAAJ", "etag": "4X6Xl91J0mQ", "selfLink":…
-
1
votes0
answers159
viewsClose Nav side when performing the function of scrolling the page
/posts/252168/edit# section{ height:100vh; width:100vw; } #a{ background-color:black; } #b{ background-color:red; } #c{ background-color:green; } #d{ background-color:blue; } <!DOCTYPE html>…
-
1
votes0
answers519
viewsHow to find the density (PPI) of the image?
I’ve seen a lot of people with the same doubt, but I can’t find anything solved. If you open an image in GIMP and/or Photoshop and click on Resize Image it is possible to discover the resolution of…
-
1
votes1
answer45
viewsAccessibility - More than one CSS on the site
I’m developing a website for an institution for the visually impaired. Many of them will access the site, and for each user with specific problem, I have a different CSS, which changes only the…
-
1
votes0
answers169
viewsclick jquery does not work on firefox
Good morning, after the code that fills the table, click handling does not work on firefox, but works on Chrome, someone has some light, please? function carregarItens(){ //variáveis var itens = "",…
-
1
votes1
answer146
viewsDisplay Array Data in Jquery table
I am developing an application where calculates the average that I validate the fields if they are properly filled and if the fields are filled and the sum of the notes is less than 10 it passes the…
-
1
votes0
answers134
viewsJson problem to load data into the Gmaps api
I’m using Rails on a college project and added to Gmaps API to my project, in which I intend to display several points on the map picking the coordinates of a file JSON to create the cluster.…
-
1
votes0
answers228
viewsBug Carousel inside modal Materialize CSS
I have the following bug, I have a modal and inside it I put this Carousel. <!DOCTYPE html> <html> <head> <!--Import Google Icon Font--> <link…
-
1
votes3
answers1300
viewsGET via jQuery on a different server, problem with CORS
I’m trying to make a call GET/AJAX for a URL which is different from the one I’m making the call, but I always get the message in the browser: Failed to load http://urldoserver.com/: No…
-
1
votes1
answer589
viewsConfirmation before deleting record
I have a link that opens a modal asking if the user wants to delete the record. On the link I have a href that calls a route to delete. How could I call this route only if I click the delete button?…
-
1
votes0
answers23
viewshow to create Syntax Highlight - jquery - css
How do you create a Highlight, color marking, like an IDE if what you typed is a command? would like to create a textarea, superimposing a div, both of the same size, and when typing in the…
-
1
votes2
answers153
viewsHide everything but the clicked element
I have a script that toggle in a DIV,when the icon and clicked the div make the toggle, the other DIVS were closed, initially I used the accordian of Jquery, however it was not useful, because the…
jqueryasked 7 years ago Marcelo Batista 1,617 -
1
votes1
answer380
viewsSubmit sending several times
I have a form where I check if the checkboxes are selected before sending Submit, but when the return is false (there is no checkbox selected), after selecting the checkbox and clicking the Submit…
-
1
votes0
answers468
viewsSave data to a file and recover them with jquery
I want to simulate a blog article and save a comment purely by Javascript then I have 3 files to accomplish this task: $("#enviar-comentario").click(function(){ var nome = $("#nome").val(); var…
-
1
votes1
answer773
viewsPlace div daughter element ul li occupying 100% of page width
The problem is this: I have a div who is daughter of a li element of a ul that does not start in the corner of the page. There are two subproblems: 1 - I need to be able to expand this div so that…
-
1
votes1
answer2072
viewsWhen pinning menu at the top after scroll, everything below moves
Whoa, guys, first I’ll explain what I’m gonna do. I want you to when using scroll and going through my menu, it gets fixed at the top. My site will have the menu in this style EXAMPLE SITE, an…
-
1
votes2
answers227
viewsCapture Hidden value in lopping
I would like help on how to get a value of one hidden that is in a useful. I need that value to send to the next screen, but since it’s on a multi-line table, I’m not getting it done. I need to get…
-
1
votes1
answer17
viewsCombox appear if there are records
I have a form where the user selects the size, automatically fills the colors Combox: The problem is that sizes will not always have colors and I would like that if there were no colors, the color…
jqueryasked 7 years ago user24136 -
1
votes1
answer140
viewsDynamic change of meta viewport tag
It is possible to change the viewport of a page and have immediate effect without having to update it? Supposing I have the following viewport on the page to display on mobile devices (smartphones…
-
1
votes1
answer397
viewsHow to change the placehoder according to the value of the select?
I built this code and when the user chooses cafe in the field <input type='search'> should appear for example: Cimo, 3Corações, Utam. If the user chooses refrigerante it should show in the…
-
1
votes2
answers70
viewsfind input value does not work
I have a list that incremented dynamically with the jquery append, the list goes like this: $("#questoes").append( '<li class="questao" data-id="'+questao+'">'+ '<div class="row…
-
1
votes3
answers1435
viewsCall functions for ajax request inside callback
Within a function callback() one click required to make at least 3 requests. I’ve separated that into three functions: (func1(), func2() e func3()) and each of them makes a request ajax ($.get)…
-
1
votes0
answers78
viewsremove element from Full Legend
I have a full Legend that allows me to use the events in other elements outside the calendar, however I would like the default events that comes in the calendar as for example the Prev, next and…
-
1
votes1
answer118
viewsRedirect with jQuery and PHP
I have two pages where one is the .js calling via ajax a PHP routine to validate a user: https://pastebin.com/37RQtjUY Another page in PHP that is the call of this previous routine where I will…
-
1
votes2
answers179
viewsHow to calculate the total value in a dynamically created table?
I have the following code that creates a table in jquery. The problem is that I wanted to create a subtotal that would add up all the values of the total column. But I’m not getting it because the…
-
1
votes0
answers45
viewsCan you handle the Submit form Event with jquery to change the values sent to the server?
I have a java server that receives an object including other objects inside the object. I wonder if you can change the Submit in such a way that you can change the structure allowing you to put a…
-
1
votes1
answer870
viewsTaking multiple equal input values and storing in an array with Javascript/jQuery
I got this div, that’s <div class='pergunta'>, inside of her I have <input type='text'> <select></select> <input type='checkbox'> The point is that this entire div can…
-
1
votes2
answers151
viewsProblems with bootstrap grid system
Guys, I’m having a problem with the bootstrap grid system, I don’t know why, but when I resize the site to the size of a device, it doesn’t fit properly.. Any suggestion? HTML: <html…
-
1
votes1
answer417
viewsSwap class name with jQuery
I want to create with jQuery the contrast functionality, where the user clicking on a given button, the site would be dark and if you click again, it would return to normal. We bought a template…
jqueryasked 7 years ago user24136 -
1
votes1
answer57
viewsAlert being repeated through . each() ajax
I got the following jQuery: $("#apagar-marcados").click(function(){ var lista_marcados = document.getElementsByName('id_mensagem[]'); $.each(lista_marcados, function(i, item){ if…
jqueryasked 7 years ago Sr. André Baill 6,946 -
1
votes2
answers229
viewsAs per Javascript Variable within an html value?
I have the following code: console.log(ArmazenaIds); console.log(ArmazenaEmails); contaQuantidadeDeEmails = ArmazenaEmails.length; //listando emails selecionados na div .top for( c=0;…
-
1
votes1
answer7958
viewsUsing jsPDF to generate PDF
I used jQuery and jsPDF to generate PDF of the content of a DIV, the code created: <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> <script…
-
1
votes1
answer197
viewsjQuery Slider - Jump between defined values and Sync with other 2 sliders
I have the following need. I have to make a solution similar to Locaweb where I move 3 sliders at the same time. And they must have the Steps defined according to the values of the plan. Example:…
-
1
votes1
answer98
viewsYou need to double-click the button to add input dynamically with jquery
I have the following script: $(document).ready(function() { var i = 0; $("#add_row").click(function() { if(i <= 5) { $('#addr' + i).html("<div><input type='text' name='cirurgia'…
-
1
votes1
answer532
viewsfocus on input loaded via ajax
0 vote against favorite I have a page where I am refreshing with ajax only on div content. It is configured like this: div1: I load 2 selects where the user will choose these 2 data (class and…
-
1
votes2
answers764
viewsUpdating Progressbar in JSF
Good Afternoon, I’m doing an asynchronous method that searches the database(oracle), and returns in an Excel file. Inside my Method has the for @Async public synchronized void…
-
1
votes1
answer133
viewsHow to activate animation of the SVG drawing when arriving in his div?
I put a file in SVG to have an animation as if creating it in lines (unfortunately in the example below is not working, but in my file is.) With this code below, as soon as I enter the page, the…
-
1
votes1
answer54
viewsJavascript index
I have a table where I can add lines dynamically, every time I click the button I add a new row to fill the field, my first row comes with index 0 <td><input type="text"…
-
1
votes1
answer29
viewsGo to a new view with Json
I am deleting with Ajax and returning a Json. How do I open a different view? Follow the code, put the url no longer works: View $.ajax({ url: '@Url.Action("ExcluirPedidoCompra")', // to get the…
-
1
votes1
answer962
viewsHow to create an array of data from an html table?
I need to input the data from table html in a array. The current scenario doesn’t allow me to add class or id for the tags <td> (which would make me much easier), later I started the code…